We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8017264 commit 2726d31Copy full SHA for 2726d31
src/providers/bedrock/messages.ts
@@ -435,9 +435,9 @@ export const BedrockMessagesResponseTransform = (
435
_gatewayRequestUrl: string,
436
gatewayRequest: Params
437
): MessagesResponse | ErrorResponse => {
438
- if (responseStatus !== 200 && 'error' in response) {
+ if (responseStatus !== 200) {
439
return (
440
- BedrockErrorResponseTransform(response) ||
+ BedrockErrorResponseTransform(response as BedrockErrorResponse) ||
441
generateInvalidProviderResponseError(response, BEDROCK)
442
);
443
}
0 commit comments