allow setting apiBase for bedrock provider
This commit is contained in:
parent
f3d200afe4
commit
6c63aeb5dc
1 changed files with 3 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue