MCPcopy Create free account
hub / github.com/SKaplanOfficial/Raycast-PromptLab / getDefaultValues

Function getDefaultValues

src/components/Models/ModelForm.tsx:45–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 const [uuid, setUUID] = useState<string>("");
44
45 const getDefaultValues = () => {
46 try {
47 const advancedSettingsValues = JSON.parse(
48 fs.readFileSync(path.join(environment.supportPath, ADVANCED_SETTINGS_FILENAME), "utf-8"),
49 );
50 if ("modelDefaults" in advancedSettingsValues) {
51 return advancedSettingsValues.modelDefaults;
52 }
53 } catch (error) {
54 console.error(error);
55 }
56
57 return models.dummyModel();
58 };
59
60 useEffect(() => {
61 const id = randomUUID();

Callers 1

ModelFormFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected