mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-13 21:17:08 +00:00
(improvement)(chat-sdk) add agentId to execute api and add PLAIN_TEXT query mode (#1223)
This commit is contained in:
@@ -61,9 +61,15 @@ export function chatParse(
|
||||
});
|
||||
}
|
||||
|
||||
export function chatExecute(queryText: string, chatId: number, parseInfo: ChatContextType) {
|
||||
export function chatExecute(
|
||||
queryText: string,
|
||||
chatId: number,
|
||||
parseInfo: ChatContextType,
|
||||
agentId?: number
|
||||
) {
|
||||
return axios.post<MsgDataType>(`${prefix}/chat/query/execute`, {
|
||||
queryText,
|
||||
agentId,
|
||||
chatId: chatId || DEFAULT_CHAT_ID,
|
||||
queryId: parseInfo.queryId,
|
||||
parseId: parseInfo.id,
|
||||
|
||||
Reference in New Issue
Block a user