mirror of
https://github.com/voideditor/void
synced 2026-05-24 01:48:25 +00:00
fallback
This commit is contained in:
parent
8c760980b6
commit
7fd06b946b
1 changed files with 1 additions and 0 deletions
|
|
@ -721,6 +721,7 @@ const xAISettings: VoidStaticProviderInfo = {
|
|||
let fallbackName: keyof typeof xAIModelOptions | null = null
|
||||
if (lower.includes('grok-2')) fallbackName = 'grok-2'
|
||||
if (lower.includes('grok-3')) fallbackName = 'grok-3'
|
||||
if (lower.includes('grok')) fallbackName = 'grok-3'
|
||||
if (fallbackName) return { modelName: fallbackName, recognizedModelName: fallbackName, ...xAIModelOptions[fallbackName] }
|
||||
return null
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue