fixes token index used as msg idx in anthropic chat-to-openai SSE transformer

This commit is contained in:
nai-degen
2024-07-07 13:33:33 -05:00
committed by Cg.
parent 2b4c2d1157
commit 2096be43b9
@@ -34,7 +34,7 @@ export const anthropicChatToOpenAI: StreamingCompletionTransformer = (
model: params.fallbackModel,
choices: [
{
index: params.index,
index: 0,
delta: { content: deltaEvent.delta.text },
finish_reason: null,
},