Download internal/translator/claude/gemini-cli/init.go from shimen/ShinAPI: direct link, hf CLI and curl.
- Browser
- Download file 510 Bytes
-
https://huggingface.co/spaces/shimen/ShinAPI/resolve/main/internal/translator/claude/gemini-cli/init.go
- Command line
-
hf download hf://spaces/shimen/ShinAPI/internal/translator/claude/gemini-cli/init.go
-
curl -L -o init.go https://huggingface.co/spaces/shimen/ShinAPI/resolve/main/internal/translator/claude/gemini-cli/init.go
510 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, | |
| Claude, | |
| ConvertGeminiCLIRequestToClaude, | |
| interfaces.TranslateResponse{ | |
| Stream: ConvertClaudeResponseToGeminiCLI, | |
| NonStream: ConvertClaudeResponseToGeminiCLINonStream, | |
| TokenCount: GeminiCLITokenCount, | |
| }, | |
| ) | |
| } | |