(cliId: string, modelId: string)
| 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 => { |
no test coverage detected