allow setting apiBase for bedrock provider

This commit is contained in:
Nate Sesti 2024-06-14 09:11:01 -07:00
parent f3d200afe4
commit 6c63aeb5dc

View file

@ -38,7 +38,9 @@ class Bedrock extends BaseLLM {
constructor(options: LLMOptions) {
super(options);
this.apiBase = `https://bedrock-runtime.${options.region}.amazonaws.com`;
if (!options.apiBase) {
this.apiBase = `https://bedrock-runtime.${options.region}.amazonaws.com`;
}
}
private _convertModelName(model: string): string {