Skip to content

Commit a4853f2

Browse files
authored
fix Human Relay not working up on welcome screen (#1759)
* fix: Add special handling to human-relay providers, optimize configuration check logic * fix: Remove the debug log in the checkExistKey function
1 parent f16a49d commit a4853f2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/shared/checkExistApiConfig.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ import { SECRET_KEYS } from "./globalState"
44
export function checkExistKey(config: ApiConfiguration | undefined) {
55
if (!config) return false
66

7+
// Special case for human-relay provider which doesn't need any configuration
8+
if (config.apiProvider === "human-relay") {
9+
return true
10+
}
11+
712
// Check all secret keys from the centralized SECRET_KEYS array
813
const hasSecretKey = SECRET_KEYS.some((key) => config[key as keyof ApiConfiguration] !== undefined)
914

0 commit comments

Comments
 (0)