mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-05-13 01:27:46 +08:00
- Updated all references from v6 to v7 for `github.com/router-for-me/CLIProxyAPI`. - Ensured consistency in imports within core libraries, tests, and integration tests. - Added missing tests for new features in Redis Protocol integration.
21 lines
504 B
Go
21 lines
504 B
Go
package gemini
|
|
|
|
import (
|
|
. "github.com/router-for-me/CLIProxyAPI/v7/internal/constant"
|
|
"github.com/router-for-me/CLIProxyAPI/v7/internal/interfaces"
|
|
"github.com/router-for-me/CLIProxyAPI/v7/internal/translator/translator"
|
|
)
|
|
|
|
func init() {
|
|
translator.Register(
|
|
Gemini,
|
|
GeminiCLI,
|
|
ConvertGeminiRequestToGeminiCLI,
|
|
interfaces.TranslateResponse{
|
|
Stream: ConvertGeminiCliResponseToGemini,
|
|
NonStream: ConvertGeminiCliResponseToGeminiNonStream,
|
|
TokenCount: GeminiTokenCount,
|
|
},
|
|
)
|
|
}
|