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:
co-authored by
Saket Aryan
Saket Aryan
parent
8a280b4a54
commit
9622ac7dff
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user