| | |
| | | let ids = []; |
| | | let idsStr = ""; |
| | | //筛选最终结果 |
| | | // const response = await AiRetrieval.getChatDetail( |
| | | // { |
| | | // message:userMessage |
| | | // } |
| | | // ); |
| | | const response = await fetch(this.severUrl +"/v1/record/chat", { |
| | | method: "POST", |
| | | headers: { |
| | | "Content-Type": "application/json", |
| | | }, |
| | | body: JSON.stringify({ |
| | | const response = await AiRetrieval.getChatDetail( |
| | | { |
| | | message: userMessage |
| | | }), |
| | | }); |
| | | |
| | | } |
| | | ); |
| | | // const response = await fetch("http://192.168.1.235:8088/v1/record/chat", { |
| | | // method: "POST", |
| | | // headers: { |
| | | // "Content-Type": "application/json", |
| | | // }, |
| | | // body: JSON.stringify({ |
| | | // message: userMessage |
| | | // }), |
| | | // }); |
| | | // console.log(response,"response参数") |
| | | if (!response.ok) throw new Error(`请求失败: ${response.status}`); |
| | | |
| | | const reader = response.body.getReader(); |
| | |
| | | background: #cadcff; |
| | | color: #2e2f31; |
| | | border-radius: 12px 12px 0 12px; |
| | | max-width: 225px; |
| | | } |
| | | |
| | | .assistant .content { |