From d4cdade06a760b2f68d258ee4a58a7c56befc757 Mon Sep 17 00:00:00 2001 From: Narendranath Gogineni Date: Thu, 26 Dec 2024 13:26:54 +0530 Subject: [PATCH] fix: remove unsupported stream parameter from cohere config in bedrock --- src/providers/bedrock/chatComplete.ts | 5 ----- src/providers/bedrock/utils.ts | 3 --- 2 files changed, 8 deletions(-) diff --git a/src/providers/bedrock/chatComplete.ts b/src/providers/bedrock/chatComplete.ts index a972f751..6971a9e6 100644 --- a/src/providers/bedrock/chatComplete.ts +++ b/src/providers/bedrock/chatComplete.ts @@ -553,11 +553,6 @@ export const BedrockConverseCohereChatCompleteConfig: ProviderConfig = { transform: (params: BedrockConverseCohereChatCompletionsParams) => transformCohereAdditionalModelRequestFields(params), }, - stream: { - param: 'additionalModelRequestFields', - transform: (params: BedrockConverseCohereChatCompletionsParams) => - transformCohereAdditionalModelRequestFields(params), - }, }; export const BedrockConverseAI21ChatCompleteConfig: ProviderConfig = { diff --git a/src/providers/bedrock/utils.ts b/src/providers/bedrock/utils.ts index 3da51e4c..f0367ce3 100644 --- a/src/providers/bedrock/utils.ts +++ b/src/providers/bedrock/utils.ts @@ -120,9 +120,6 @@ export const transformCohereAdditionalModelRequestFields = ( if (params['logit_bias']) { additionalModelRequestFields['logitBias'] = params['logit_bias']; } - if (params['stream']) { - additionalModelRequestFields['stream'] = params['stream']; - } return additionalModelRequestFields; };