mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 12:37:55 +00:00
(improvement)(chat-sdk) add agentId to execute api and add PLAIN_TEXT query mode (#1223)
This commit is contained in:
@@ -86,11 +86,13 @@ const ChatMsg: React.FC<Props> = ({
|
||||
const isMetricCard = (queryMode.includes('METRIC') || isDslMetricCard) && singleData;
|
||||
|
||||
const isText =
|
||||
columns.length === 1 &&
|
||||
columns[0].showType === 'CATEGORY' &&
|
||||
((!queryMode.includes('METRIC') && !queryMode.includes('ENTITY')) ||
|
||||
queryMode === 'METRIC_INTERPRET') &&
|
||||
singleData;
|
||||
queryMode === 'PLAIN_TEXT' ||
|
||||
(columns.length === 1 &&
|
||||
columns[0].showType === 'CATEGORY' &&
|
||||
((!queryMode.includes('METRIC') && !queryMode.includes('ENTITY')) ||
|
||||
queryMode === 'METRIC_INTERPRET') &&
|
||||
singleData);
|
||||
|
||||
if (isText) {
|
||||
return MsgContentTypeEnum.TEXT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user