fixes token index used as msg idx in anthropic chat-to-openai SSE transformer
This commit is contained in:
parent
edc0d094e2
commit
f242777596
|
@ -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,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue