fix: restore llm model type for openai-compatible provider (regression)
Some checks failed
Build & Push Docker Image / build-and-push (push) Has been cancelled
Some checks failed
Build & Push Docker Image / build-and-push (push) Has been cancelled
This commit is contained in:
@@ -64,8 +64,7 @@ const MODEL_TYPES: readonly ProviderCardModelType[] = ['llm', 'image', 'video',
|
||||
|
||||
export function getAddableModelTypesForProvider(providerId: string): ProviderCardModelType[] {
|
||||
const providerKey = getProviderKey(providerId)
|
||||
if (providerKey === 'openai-compatible') return ['image', 'video']
|
||||
if (providerKey === 'grok2') return ['llm', 'image', 'video']
|
||||
if (providerKey === 'openai-compatible' || providerKey === 'grok2') return ['llm', 'image', 'video']
|
||||
return ['llm', 'image', 'video', 'audio']
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user