fix: clear backend parameters when change model file

This commit is contained in:
jialin
2025-05-29 11:32:23 +08:00
parent aa6b5ec24f
commit 40020df865
6 changed files with 122 additions and 44 deletions
@@ -23,12 +23,16 @@ const labelFormatter = (v: any) => {
return dayjs(v).format('MM-DD');
};
const dataList = [
{ label: '100M', value: 'Completion Tokens' },
{ label: '50M', value: 'Prompt Tokens' },
{ label: '120K', value: 'API Requests' }
];
const RequestTokenInner: React.FC<RequestTokenInnerProps> = (props) => {
const { requestData, tokenData, xAxisData } = props;
const intl = useIntl();
console.log('usage===========', requestData, tokenData, xAxisData);
return (
<CardWrapper style={{ width: '100%' }}>
<Row style={{ width: '100%' }}>
@@ -51,17 +55,6 @@ const RequestTokenInner: React.FC<RequestTokenInnerProps> = (props) => {
></BarChart>
</Col>
</Row>
{/* <MixLineBar
title={intl.formatMessage({ id: 'dashboard.apirequest' })}
chartData={{
line: requestData,
bar: tokenData
}}
seriesData={[]}
xAxisData={xAxisData}
height={360}
labelFormatter={labelFormatter}
></MixLineBar> */}
</CardWrapper>
);
};