MCPcopy
hub / github.com/opactorai/Claudable / setDefaultModel

Function setDefaultModel

components/settings/GlobalSettings.tsx:268–279  ·  view source on GitHub ↗
(cliId: string, modelId: string)

Source from the content-addressed store, hash-verified

266 };
267
268 const setDefaultModel = (cliId: string, modelId: string) => {
269 setGlobalSettings(prev => ({
270 ...prev,
271 cli_settings: {
272 ...(prev?.cli_settings ?? {}),
273 [cliId]: {
274 ...(prev?.cli_settings?.[cliId] ?? {}),
275 model: normalizeModelId(cliId, modelId)
276 }
277 }
278 }));
279 };
280
281 const setCliApiKey = (cliId: string, apiKey: string) => {
282 setGlobalSettings(prev => {

Callers 1

GlobalSettingsFunction · 0.85

Calls 1

normalizeModelIdFunction · 0.90

Tested by

no test coverage detected