Browse Source

fix: add missing zaiApiKey and doubaoApiKey to SECRET_STATE_KEYS (#7083)

Fixes first-time initialization issue with Z AI and Doubao providers
where the API keys were not recognized as valid secret keys, causing
the configuration to fail during initial setup.

Fixes #7082

Co-authored-by: Roo Code <[email protected]>
roomote[bot] 4 months ago
parent
commit
b06005d321
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/types/src/global-settings.ts

+ 2 - 0
packages/types/src/global-settings.ts

@@ -178,6 +178,7 @@ export const SECRET_STATE_KEYS = [
 	"openAiNativeApiKey",
 	"cerebrasApiKey",
 	"deepSeekApiKey",
+	"doubaoApiKey",
 	"moonshotApiKey",
 	"mistralApiKey",
 	"unboundApiKey",
@@ -193,6 +194,7 @@ export const SECRET_STATE_KEYS = [
 	"codebaseIndexMistralApiKey",
 	"huggingFaceApiKey",
 	"sambaNovaApiKey",
+	"zaiApiKey",
 	"fireworksApiKey",
 	"ioIntelligenceApiKey",
 ] as const satisfies readonly (keyof ProviderSettings)[]