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