前端和json优化

This commit is contained in:
2025-11-28 17:16:17 +08:00
parent 34e69c7f62
commit dfb11c85f1
135 changed files with 930 additions and 633 deletions

View File

@@ -255,7 +255,7 @@ const agentResult = await aiAgentConfigApi.createAgent({
status: 1
});
const agentId = agentResult.data?.ID;
const agentId = agentResult.data?.id;
// 2. 流式对话
await chatApi.streamChat(
@@ -294,7 +294,7 @@ const knowledgeResult = await knowledgeApi.createKnowledge({
embeddingModel: 'text-embedding-ada-002'
});
const knowledgeId = knowledgeResult.data?.ID;
const knowledgeId = knowledgeResult.data?.id;
// 2. 上传文件
const files = document.querySelector('input[type="file"]').files;