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:
@@ -17,6 +17,7 @@ export type ProviderInfo = {
|
||||
export interface IProviderSetting {
|
||||
enabled?: boolean;
|
||||
baseUrl?: string;
|
||||
OPENAI_LIKE_API_MODELS?: string;
|
||||
}
|
||||
|
||||
export type IProviderConfig = ProviderInfo & {
|
||||
|
||||
Reference in New Issue
Block a user