File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ import { SECRET_KEYS } from "./globalState"
44export 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
@@ -16,5 +21,9 @@ export function checkExistKey(config: ApiConfiguration | undefined) {
1621 config . vsCodeLmModelSelector ,
1722 ] . some ( ( value ) => value !== undefined )
1823
24+ console . log ( "[checkExistKey] config:" , config )
25+ console . log ( "[checkExistKey] hasSecretKey:" , hasSecretKey )
26+ console . log ( "[checkExistKey] hasOtherConfig:" , hasOtherConfig )
27+
1928 return hasSecretKey || hasOtherConfig
2029}
You can’t perform that action at this time.
0 commit comments