|
|
@@ -4,6 +4,11 @@ import { SECRET_KEYS } from "./globalState"
|
|
|
export function checkExistKey(config: ApiConfiguration | undefined) {
|
|
|
if (!config) return false
|
|
|
|
|
|
+ // Special case for human-relay provider which doesn't need any configuration
|
|
|
+ if (config.apiProvider === "human-relay") {
|
|
|
+ return true
|
|
|
+ }
|
|
|
+
|
|
|
// Check all secret keys from the centralized SECRET_KEYS array
|
|
|
const hasSecretKey = SECRET_KEYS.some((key) => config[key as keyof ApiConfiguration] !== undefined)
|
|
|
|