File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
backend/src/entities/ai/amazon-bedrock Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 1- import { Injectable } from '@nestjs/common' ;
21import { BedrockRuntimeClient , ConverseCommand } from '@aws-sdk/client-bedrock-runtime' ;
2+ import { Injectable } from '@nestjs/common' ;
33import { IAIProvider } from './ai-provider.interface.js' ;
44
55@Injectable ( )
66export class AmazonBedrockAiProvider implements IAIProvider {
77 private readonly bedrockRuntimeClient : BedrockRuntimeClient ;
88 private readonly modelId : string = 'global.anthropic.claude-sonnet-4-5-20250929-v1:0' ;
9- private readonly maxTokens : number = 1024 ;
109
1110 constructor ( ) {
1211 this . bedrockRuntimeClient = new BedrockRuntimeClient ( ) ;
@@ -22,7 +21,6 @@ export class AmazonBedrockAiProvider implements IAIProvider {
2221 const command = new ConverseCommand ( {
2322 modelId : this . modelId ,
2423 messages : conversation ,
25- inferenceConfig : { maxTokens : this . maxTokens } ,
2624 } ) ;
2725 try {
2826 const response = await this . bedrockRuntimeClient . send ( command ) ;
You can’t perform that action at this time.
0 commit comments