fix: 修正AiModel接口字段名model_id改为id
parent
4fbb15f3d0
commit
d00ef10e9f
|
|
@ -119,7 +119,7 @@ export interface ChatHistoryResp {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface AiModel {
|
export interface AiModel {
|
||||||
model_id: string;
|
id: string;
|
||||||
model_name: string;
|
model_name: string;
|
||||||
icon: string;
|
icon: string;
|
||||||
model_ratio: number;
|
model_ratio: number;
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ export default function ModelCheckboxDropdown({ value = [], onChange, models }:
|
||||||
const inputPrice = 2 * m.model_ratio;
|
const inputPrice = 2 * m.model_ratio;
|
||||||
const outputPrice = inputPrice * m.completion_ratio;
|
const outputPrice = inputPrice * m.completion_ratio;
|
||||||
return (
|
return (
|
||||||
<Checkbox key={m.model_id} value={m.model_id} className="agent-model-checkbox-item">
|
<Checkbox key={m.id} value={m.id} className="agent-model-checkbox-item">
|
||||||
<div className="agent-model-checkbox-content">
|
<div className="agent-model-checkbox-content">
|
||||||
<div className="agent-model-checkbox-meta">
|
<div className="agent-model-checkbox-meta">
|
||||||
<img
|
<img
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue