feat: add support for OPENAI_LIKE_API_MODELS
- Add OPENAI_LIKE_API_MODELS environment variable support - Enable fallback model parsing when /models endpoint fails - Support providers like Fireworks AI that don't allow /models requests - Format: path/to/model1:limit;path/to/model2:limit;path/to/model3:limit - Update IProviderSetting interface to include OPENAI_LIKE_API_MODELS property - Fix all linting errors and code formatting issues
This commit is contained in:
1
worker-configuration.d.ts
vendored
1
worker-configuration.d.ts
vendored
@@ -9,6 +9,7 @@ interface Env {
|
||||
OLLAMA_API_BASE_URL: string;
|
||||
OPENAI_LIKE_API_KEY: string;
|
||||
OPENAI_LIKE_API_BASE_URL: string;
|
||||
OPENAI_LIKE_API_MODELS: string;
|
||||
TOGETHER_API_KEY: string;
|
||||
TOGETHER_API_BASE_URL: string;
|
||||
DEEPSEEK_API_KEY: string;
|
||||
|
||||
Reference in New Issue
Block a user