We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2025081 commit 4dd4d8bCopy full SHA for 4dd4d8b
2 files changed
aiduino/extension/out/utils/apiManager.js
@@ -107,9 +107,11 @@ async function switchModel(context) {
107
}
108
109
// Save selection in format: sk-or-xxx|model-id
110
- const apiKey = updatedContext.apiKeys[selected.value];
+ let apiKey = updatedContext.apiKeys[selected.value];
111
if (apiKey) {
112
- const savedConfig = `${apiKey}|${modelChoice.id}`;
+ // Strip old model if exists (format: key|model)
113
+ const keyOnly = apiKey.split('|')[0];
114
+ const savedConfig = `${keyOnly}|${modelChoice.id}`;
115
updatedContext.apiKeys[selected.value] = savedConfig;
116
fileManager.saveApiKey(selected.value, savedConfig, minimalModelManager.providers);
117
updateStatusBar();
installer/aiduino.vsix
45 Bytes
0 commit comments