MCPcopy Create free account
hub / github.com/bhaskatripathi/Text2Diagram / handleModelChange

Function handleModelChange

components/APIKeyInput.tsx:26–28  ·  view source on GitHub ↗
(value: OpenAIModel)

Source from the content-addressed store, hash-verified

24 setApiKey(e.target.value);
25
26 const handleModelChange = (value: OpenAIModel) => {
27 setModel(value);
28 };
29
30 const handleSave = () => {
31 localStorage.setItem("apiKey", apiKey);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected