fix(ASA): 修复 TypeScript 类型错误 [AC-ASA-14, AC-ASA-37]
- 修复 api/llm.ts 中 LLMUsageType 类型未导出的问题 - 修复 script-flow/index.vue 中 max_kb_calls_per_step 类型不匹配问题 (null -> undefined)
This commit is contained in:
parent
ee79b40503
commit
a15e89dfc3
|
|
@ -62,5 +62,6 @@ export type {
|
||||||
LLMProvidersResponse,
|
LLMProvidersResponse,
|
||||||
LLMUsageTypesResponse,
|
LLMUsageTypesResponse,
|
||||||
LLMConfigUpdateResponse,
|
LLMConfigUpdateResponse,
|
||||||
LLMAllConfigs
|
LLMAllConfigs,
|
||||||
|
LLMUsageType
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -593,7 +593,7 @@ const handleEdit = async (row: ScriptFlow) => {
|
||||||
allowed_kb_ids: step.allowed_kb_ids || [],
|
allowed_kb_ids: step.allowed_kb_ids || [],
|
||||||
preferred_kb_ids: step.preferred_kb_ids || [],
|
preferred_kb_ids: step.preferred_kb_ids || [],
|
||||||
kb_query_hint: step.kb_query_hint || '',
|
kb_query_hint: step.kb_query_hint || '',
|
||||||
max_kb_calls_per_step: step.max_kb_calls_per_step || null
|
max_kb_calls_per_step: step.max_kb_calls_per_step ?? undefined
|
||||||
})),
|
})),
|
||||||
is_enabled: detail.is_enabled,
|
is_enabled: detail.is_enabled,
|
||||||
metadata: detail.metadata || {}
|
metadata: detail.metadata || {}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue