feat: support openai compatible llm provider by adding baseUrl to config (#2674)

Signed-off-by: frank-zsy <syzhao1988@126.com>
Co-authored-by: Saket Aryan <94069182+whysosaket@users.noreply.github.com>
Co-authored-by: Saket Aryan <saketaryan2002@gmail.com>
This commit is contained in:
Frank Zhao
2025-05-27 00:25:23 +05:30
committed by GitHub
co-authored by Saket Aryan Saket Aryan
parent 8a280b4a54
commit 9622ac7dff
6 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ export class OpenAILLM implements LLM {
private model: string;
constructor(config: LLMConfig) {
this.openai = new OpenAI({ apiKey: config.apiKey });
this.openai = new OpenAI({ apiKey: config.apiKey, baseURL: config.baseURL });
this.model = config.model || "gpt-4o-mini";
}