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:
MerCry 2026-03-11 19:43:08 +08:00
parent ee79b40503
commit a15e89dfc3
2 changed files with 3 additions and 2 deletions

View File

@ -62,5 +62,6 @@ export type {
LLMProvidersResponse,
LLMUsageTypesResponse,
LLMConfigUpdateResponse,
LLMAllConfigs
LLMAllConfigs,
LLMUsageType
}

View File

@ -593,7 +593,7 @@ const handleEdit = async (row: ScriptFlow) => {
allowed_kb_ids: step.allowed_kb_ids || [],
preferred_kb_ids: step.preferred_kb_ids || [],
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,
metadata: detail.metadata || {}