前端和json优化
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user