mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-05-14 02:36:09 +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
510 B
Go
21 lines
510 B
Go
package geminiCLI
|
|
|
|
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(
|
|
GeminiCLI,
|
|
Gemini,
|
|
ConvertGeminiCLIRequestToGemini,
|
|
interfaces.TranslateResponse{
|
|
Stream: ConvertGeminiResponseToGeminiCLI,
|
|
NonStream: ConvertGeminiResponseToGeminiCLINonStream,
|
|
TokenCount: GeminiCLITokenCount,
|
|
},
|
|
)
|
|
}
|