mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-05-03 23:14:19 +08:00
(improvement)(chat|common|headless|webapp) 结果分析,改写伪流式输出,加快响应速度 (#2395)
This commit is contained in:
@@ -79,7 +79,8 @@ export function chatExecute(
|
||||
queryText: string,
|
||||
chatId: number,
|
||||
parseInfo: ChatContextType,
|
||||
agentId?: number
|
||||
agentId?: number,
|
||||
streamingResult?:boolean
|
||||
) {
|
||||
return axios.post<MsgDataType>(`${prefix}/chat/query/execute`, {
|
||||
queryText,
|
||||
@@ -87,6 +88,15 @@ export function chatExecute(
|
||||
chatId: chatId || DEFAULT_CHAT_ID,
|
||||
queryId: parseInfo.queryId,
|
||||
parseId: parseInfo.id,
|
||||
streamingResult:streamingResult
|
||||
});
|
||||
}
|
||||
|
||||
export function getExecuteSummary(
|
||||
queryId: number
|
||||
) {
|
||||
return axios.post<MsgDataType>(`${prefix}/chat/query/getExecuteSummary`, {
|
||||
queryId: queryId,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user