mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-18 20:30:51 +08:00
feat(translator): add built-in translator registry and helpers
- Introduced `builtin` package exposing a default registry and pipeline for built-in translators. - Added format constants for common schemas (e.g., OpenAI, Gemini, Codex). - Implemented helper functions for schema translation using format name strings. - Provided example usage for integration with translator helpers.
This commit is contained in:
11
sdk/translator/formats.go
Normal file
11
sdk/translator/formats.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package translator
|
||||
|
||||
// Common format identifiers exposed for SDK users.
|
||||
const (
|
||||
FormatOpenAI Format = "openai"
|
||||
FormatOpenAIResponse Format = "openai-response"
|
||||
FormatClaude Format = "claude"
|
||||
FormatGemini Format = "gemini"
|
||||
FormatGeminiCLI Format = "gemini-cli"
|
||||
FormatCodex Format = "codex"
|
||||
)
|
||||
Reference in New Issue
Block a user