mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-25 03:27:15 +00:00
fix(wizard): use correct reasoning_config format for model creation
Use { level: 'provider_default' } instead of { enabled: false }.
Also use model's scanned abilities instead of hardcoded ['llm'].
This commit is contained in:
@@ -1174,8 +1174,8 @@ function WizardModelScan({
|
|||||||
await httpClient.createProviderLLMModel({
|
await httpClient.createProviderLLMModel({
|
||||||
name,
|
name,
|
||||||
provider_uuid: providerUuid,
|
provider_uuid: providerUuid,
|
||||||
abilities: ['llm'],
|
abilities: (model as { abilities?: string[] })?.abilities || ['llm'],
|
||||||
reasoning_config: { enabled: false } as never,
|
reasoning_config: { level: 'provider_default' },
|
||||||
context_length: model?.context_length ?? null,
|
context_length: model?.context_length ?? null,
|
||||||
extra_args: {},
|
extra_args: {},
|
||||||
} as never);
|
} as never);
|
||||||
|
|||||||
Reference in New Issue
Block a user