diff --git a/src/extension.ts b/src/extension.ts index 97a862f..042b34c 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -64,6 +64,8 @@ async function configUpdateTo_0924() { if (!devchatKey && !openaiKey) { openaiKey = await UiUtilWrapper.secretStorageGet("openai_OPENAI_API_KEY"); devchatKey = await UiUtilWrapper.secretStorageGet("devchat_OPENAI_API_KEY"); + await UiUtilWrapper.storeSecret("openai_OPENAI_API_KEY", ""); + await UiUtilWrapper.storeSecret("devchat_OPENAI_API_KEY", ""); } if (!devchatKey && !openaiKey) { openaiKey = process.env.OPENAI_API_KEY; diff --git a/src/util/apiKey.ts b/src/util/apiKey.ts index c389be0..7cdf008 100644 --- a/src/util/apiKey.ts +++ b/src/util/apiKey.ts @@ -6,6 +6,7 @@ export class ApiKeyManager { static toProviderKey(provider: string) : string | undefined { let providerNameMap = { "openai": "OpenAI", + "devchat": "DevChat", "cohere": "Cohere", "anthropic": "Anthropic", "replicate": "Replicate",