(model: string, current: ModelPricing)
| 19 | const [showAddForm, setShowAddForm] = useState(false); |
| 20 | |
| 21 | const handleEdit = (model: string, current: ModelPricing) => { |
| 22 | setEditingModel(model); |
| 23 | setEditValues(current); |
| 24 | }; |
| 25 | |
| 26 | const handleSave = async (model: string) => { |
| 27 | if (!editValues.input_price_per_m || !editValues.output_price_per_m) return; |