MCPcopy Create free account
hub / github.com/astercloud/aster / handleEdit

Function handleEdit

studio/src/pages/Settings.tsx:21–24  ·  view source on GitHub ↗
(model: string, current: ModelPricing)

Source from the content-addressed store, hash-verified

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;

Callers 1

SettingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected