Skip to content

Commit 255b38f

Browse files
Refactor Bedrock service response handling
- Removed the prompt parameter from the handleBedrockResponse method in BedrockService to streamline response processing. - Updated invokeModel method to reflect this change, enhancing code clarity and maintainability.
1 parent 7100f36 commit 255b38f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/common/services/ai/bedrock.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class BedrockService {
134134
const responseBody = new TextDecoder().decode(response.body);
135135
const parsedResponse = JSON.parse(responseBody) as BedrockResponse;
136136

137-
return this.handleBedrockResponse(parsedResponse, prompt);
137+
return this.handleBedrockResponse(parsedResponse);
138138
} catch (error) {
139139
console.error('Error invoking Bedrock model:', error);
140140
throw error;

0 commit comments

Comments
 (0)