mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-03 04:50:52 +08:00
- Introduced OpenAI compatibility configurations for external providers, enabling model alias routing via the OpenAI API format. - Enhanced provider logic in `GetProviderName` to handle OpenAI aliases and added new helper functions for compatibility checks. - Updated API handlers and client initialization to support OpenAI compatibility models. - Improved resource cleanup across clients by closing response bodies and streams using deferred functions.
11 lines
243 B
Go
11 lines
243 B
Go
package constant
|
|
|
|
const (
|
|
GEMINI = "gemini"
|
|
GEMINICLI = "gemini-cli"
|
|
CODEX = "codex"
|
|
CLAUDE = "claude"
|
|
OPENAI = "openai"
|
|
OPENAI_COMPATIBILITY = "openai-compatibility"
|
|
)
|