fix: 修正AiModel接口字段名model_id改为id

main
sp mac bookpro 2605 2026-06-03 01:47:41 +08:00
parent 4fbb15f3d0
commit d00ef10e9f
2 changed files with 312 additions and 312 deletions

View File

@ -119,7 +119,7 @@ export interface ChatHistoryResp {
}
export interface AiModel {
model_id: string;
id: string;
model_name: string;
icon: string;
model_ratio: number;

View File

@ -30,7 +30,7 @@ export default function ModelCheckboxDropdown({ value = [], onChange, models }:
const inputPrice = 2 * m.model_ratio;
const outputPrice = inputPrice * m.completion_ratio;
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-meta">
<img