diff --git a/core/llm/index.ts b/core/llm/index.ts index a4a6cabff..82e413ae8 100644 --- a/core/llm/index.ts +++ b/core/llm/index.ts @@ -210,7 +210,7 @@ export abstract class BaseLLM implements ILLM { this.openaiAdapter = constructLlmApi({ provider: this.providerName as any, - apiKey: this.apiKey, + apiKey: this.apiKey ?? "", apiBase: this.apiBase, requestOptions: this.requestOptions, });