fix: restore llm model type for openai-compatible provider (regression)
Some checks failed
Build & Push Docker Image / build-and-push (push) Has been cancelled

This commit is contained in:
shiyue
2026-03-11 15:11:41 +00:00
parent 428ec2dd61
commit 287d0020bb

View File

@@ -64,8 +64,7 @@ const MODEL_TYPES: readonly ProviderCardModelType[] = ['llm', 'image', 'video',
export function getAddableModelTypesForProvider(providerId: string): ProviderCardModelType[] { export function getAddableModelTypesForProvider(providerId: string): ProviderCardModelType[] {
const providerKey = getProviderKey(providerId) const providerKey = getProviderKey(providerId)
if (providerKey === 'openai-compatible') return ['image', 'video'] if (providerKey === 'openai-compatible' || providerKey === 'grok2') return ['llm', 'image', 'video']
if (providerKey === 'grok2') return ['llm', 'image', 'video']
return ['llm', 'image', 'video', 'audio'] return ['llm', 'image', 'video', 'audio']
} }