Spaces:
Paused
Paused
Download internal/translator/codex/gemini-cli/init.go from shimen/shinmenapi: direct link, hf CLI and curl.
- Browser
- Download file 506 Bytes
-
https://huggingface.co/spaces/shimen/shinmenapi/resolve/main/internal/translator/codex/gemini-cli/init.go
- Command line
-
hf download hf://spaces/shimen/shinmenapi/internal/translator/codex/gemini-cli/init.go
-
curl -L -o init.go https://huggingface.co/spaces/shimen/shinmenapi/resolve/main/internal/translator/codex/gemini-cli/init.go
506 Bytes
| package geminiCLI | |
| import ( | |
| . "github.com/router-for-me/CLIProxyAPI/v6/internal/constant" | |
| "github.com/router-for-me/CLIProxyAPI/v6/internal/interfaces" | |
| "github.com/router-for-me/CLIProxyAPI/v6/internal/translator/translator" | |
| ) | |
| func init() { | |
| translator.Register( | |
| GeminiCLI, | |
| Codex, | |
| ConvertGeminiCLIRequestToCodex, | |
| interfaces.TranslateResponse{ | |
| Stream: ConvertCodexResponseToGeminiCLI, | |
| NonStream: ConvertCodexResponseToGeminiCLINonStream, | |
| TokenCount: GeminiCLITokenCount, | |
| }, | |
| ) | |
| } | |