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
parent edc0d094e2
commit f242777596
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ export const anthropicChatToOpenAI: StreamingCompletionTransformer = (
model: params.fallbackModel, model: params.fallbackModel,
choices: [ choices: [
{ {
index: params.index, index: 0,
delta: { content: deltaEvent.delta.text }, delta: { content: deltaEvent.delta.text },
finish_reason: null, finish_reason: null,
}, },