[fix](supersonic-fe) fix the issue of agent metric interpret value display (#56)

* [fix](supersonic-fe) fix the issue of agent metric interpret value display
This commit is contained in:
williamhliu
2023-09-05 12:00:00 +08:00
committed by GitHub
parent 249728919d
commit 9267f8ed18
3 changed files with 1 additions and 9 deletions

View File

@@ -1,6 +1,5 @@
import axios from './axiosInstance';
import { ChatContextType, DrillDownDimensionType, HistoryType, MsgDataType, ParseDataType, SearchRecommendItem } from '../common/type';
import { QueryDataType } from '../common/type';
const DEFAULT_CHAT_ID = 0;

View File

@@ -83,15 +83,12 @@ const ToolModal: React.FC<Props> = ({ editTool, onSaveTool, onCancel }) => {
...values,
exampleQuestions: examples.map((item) => item.question).filter((item) => item),
plugins: values.plugins ? [values.plugins] : undefined,
metricOptions: metricOptions.map((item) => ({ modelId: values.modelId, ...item })),
metricOptions: metricOptions.map((item) => ({ ...item, modelId: values.modelId })),
});
setSaveLoading(false);
};
const updateMetricList = async (value: number) => {
if (modelMetricList[value]) {
return;
}
const res = await getMetricList(value);
setModelMetricList(res.data.list);
};

View File

@@ -66,10 +66,6 @@
}
}
// &:hover {
// background: #f0f0f0;
// }
&:hover, &.active {
background: #22a5f7;