(feature)(chat-sdk) modify the method for obtaining similar questions and recommended drill-down dimensions; do not display assistant button when there is only one assistant (#514)

This commit is contained in:
williamhliu
2023-12-15 17:41:35 +08:00
committed by GitHub
parent 4dae84034e
commit 4b00c16eb7
9 changed files with 107 additions and 57 deletions

View File

@@ -140,6 +140,8 @@ export type MsgDataType = {
response: PluginResonseType;
parseInfos?: ChatContextType[];
queryTimeCost?: number;
similarQueries: SimilarQuestionType[];
recommendedDimensions: DrillDownDimensionType[];
};
export enum ParseStateEnum {
@@ -220,6 +222,7 @@ export type HistoryMsgItemType = {
createTime: string;
feedback: string;
score: number;
similarQueries: SimilarQuestionType[];
};
export type HistoryType = {
@@ -242,8 +245,8 @@ export type SendMsgParamsType = {
};
export type SimilarQuestionType = {
// queryId: number;
// parseId: number;
queryId: number;
parseId: number;
queryText: string;
};