From 1072583f03bcaca4f5495b04a504824766da4a6a Mon Sep 17 00:00:00 2001 From: Narendranath Gogineni Date: Wed, 11 Dec 2024 09:00:52 +0530 Subject: [PATCH] fix: groq finish reason mapping --- src/providers/groq/chatComplete.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/groq/chatComplete.ts b/src/providers/groq/chatComplete.ts index aa824f44..8478bd76 100644 --- a/src/providers/groq/chatComplete.ts +++ b/src/providers/groq/chatComplete.ts @@ -153,7 +153,7 @@ export const GroqChatCompleteStreamChunkTransform: ( index: parsedChunk.choices[0].index || 0, delta: {}, logprobs: null, - finish_reason: parsedChunk.choices[0].index, + finish_reason: parsedChunk.choices[0].finish_reason, }, ], usage: {