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 f16a49d commit a4853f2Copy full SHA for a4853f2
src/shared/checkExistApiConfig.ts
@@ -4,6 +4,11 @@ import { SECRET_KEYS } from "./globalState"
4
export function checkExistKey(config: ApiConfiguration | undefined) {
5
if (!config) return false
6
7
+ // Special case for human-relay provider which doesn't need any configuration
8
+ if (config.apiProvider === "human-relay") {
9
+ return true
10
+ }
11
+
12
// Check all secret keys from the centralized SECRET_KEYS array
13
const hasSecretKey = SECRET_KEYS.some((key) => config[key as keyof ApiConfiguration] !== undefined)
14
0 commit comments