mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-19 04:44:19 +08:00
(improvement)(chat-sdk) add agentId to execute api and add PLAIN_TEXT query mode (#1223)
This commit is contained in:
@@ -96,7 +96,7 @@ const SqlItem: React.FC<Props> = ({
|
||||
setSqlType(sqlType === 's2SQL' ? '' : 's2SQL');
|
||||
}}
|
||||
>
|
||||
{queryMode === 'LLM_S2SQL' ? 'LLM' : 'Rule'}解析S2SQL
|
||||
{queryMode === 'LLM_S2SQL' || queryMode === 'PLAIN_TEXT' ? 'LLM' : 'Rule'}解析S2SQL
|
||||
</div>
|
||||
)}
|
||||
{sqlInfo.correctS2SQL && (
|
||||
|
||||
@@ -123,7 +123,7 @@ const ChatItem: React.FC<Props> = ({
|
||||
setExecuteLoading(true);
|
||||
}
|
||||
try {
|
||||
const res: any = await chatExecute(msg, conversationId!, parseInfoValue);
|
||||
const res: any = await chatExecute(msg, conversationId!, parseInfoValue, agentId);
|
||||
const valid = updateData(res);
|
||||
onMsgDataLoaded?.(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user