MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / applyPreset

Function applyPreset

ai-code-studio/src/components/SettingsDialog.tsx:94–102  ·  view source on GitHub ↗
(preset: ProviderPreset)

Source from the content-addressed store, hash-verified

92 }
93
94 function applyPreset(preset: ProviderPreset) {
95 setConfig(current => ({
96 ...current,
97 upstreamBaseUrl: preset.upstreamBaseUrl,
98 upstreamModel: preset.upstreamModel,
99 clawModel: preset.clawModel,
100 textMode: preset.textMode,
101 }));
102 }
103
104 async function pickDirectory(target: 'workspaceDir' | 'clawProjectDir') {
105 const nextPath = await window.clawDesktop?.pickDirectory?.();

Callers 1

SettingsDialogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected