mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-05-12 17:16:32 +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
488 B
Go
21 lines
488 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,
|
|
Codex,
|
|
ConvertGeminiRequestToCodex,
|
|
interfaces.TranslateResponse{
|
|
Stream: ConvertCodexResponseToGemini,
|
|
NonStream: ConvertCodexResponseToGeminiNonStream,
|
|
TokenCount: GeminiTokenCount,
|
|
},
|
|
)
|
|
}
|