Skip to content

Commit

Permalink
fix: groq finish reason mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
narengogi committed Dec 11, 2024
1 parent c8455a4 commit 1072583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/groq/chatComplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 1072583

Please sign in to comment.