mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 03:58:14 +00:00
[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:
@@ -1,6 +1,5 @@
|
|||||||
import axios from './axiosInstance';
|
import axios from './axiosInstance';
|
||||||
import { ChatContextType, DrillDownDimensionType, HistoryType, MsgDataType, ParseDataType, SearchRecommendItem } from '../common/type';
|
import { ChatContextType, DrillDownDimensionType, HistoryType, MsgDataType, ParseDataType, SearchRecommendItem } from '../common/type';
|
||||||
import { QueryDataType } from '../common/type';
|
|
||||||
|
|
||||||
const DEFAULT_CHAT_ID = 0;
|
const DEFAULT_CHAT_ID = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -83,15 +83,12 @@ const ToolModal: React.FC<Props> = ({ editTool, onSaveTool, onCancel }) => {
|
|||||||
...values,
|
...values,
|
||||||
exampleQuestions: examples.map((item) => item.question).filter((item) => item),
|
exampleQuestions: examples.map((item) => item.question).filter((item) => item),
|
||||||
plugins: values.plugins ? [values.plugins] : undefined,
|
plugins: values.plugins ? [values.plugins] : undefined,
|
||||||
metricOptions: metricOptions.map((item) => ({ modelId: values.modelId, ...item })),
|
metricOptions: metricOptions.map((item) => ({ ...item, modelId: values.modelId })),
|
||||||
});
|
});
|
||||||
setSaveLoading(false);
|
setSaveLoading(false);
|
||||||
};
|
};
|
||||||
|
|
||||||
const updateMetricList = async (value: number) => {
|
const updateMetricList = async (value: number) => {
|
||||||
if (modelMetricList[value]) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
const res = await getMetricList(value);
|
const res = await getMetricList(value);
|
||||||
setModelMetricList(res.data.list);
|
setModelMetricList(res.data.list);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -66,10 +66,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// &:hover {
|
|
||||||
// background: #f0f0f0;
|
|
||||||
// }
|
|
||||||
|
|
||||||
&:hover, &.active {
|
&:hover, &.active {
|
||||||
background: #22a5f7;
|
background: #22a5f7;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user