agsamantha/node_modules/@langchain/community/dist/llms/bedrock/index.js
2024-10-02 15:15:21 -05:00

13 lines
370 B
JavaScript

import { defaultProvider } from "@aws-sdk/credential-provider-node";
import { Bedrock as BaseBedrock } from "./web.js";
export class Bedrock extends BaseBedrock {
static lc_name() {
return "Bedrock";
}
constructor(fields) {
super({
...fields,
credentials: fields?.credentials ?? defaultProvider(),
});
}
}