Skip to content

Commit 965bcd0

Browse files
committed
refactor: remove unused maxTokens parameter from ConverseCommand
1 parent 69dcf2d commit 965bcd0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

backend/src/entities/ai/amazon-bedrock/amazon-bedrock.ai.provider.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import { Injectable } from '@nestjs/common';
21
import { BedrockRuntimeClient, ConverseCommand } from '@aws-sdk/client-bedrock-runtime';
2+
import { Injectable } from '@nestjs/common';
33
import { IAIProvider } from './ai-provider.interface.js';
44

55
@Injectable()
66
export 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);

0 commit comments

Comments
 (0)