mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-06 08:18:39 +00:00
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
This commit is contained in:
parent
f16a49de87
commit
a4853f2faa
1 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue