Fix index assignment in OpenAIChatCompletionChunkChoice

This commit is contained in:
bloodycrownD authored and GitHub committed 2025-11-22 00:50:26 +08:00
1 parent 6599b1b283
commit aa02c32fa1
1 file changed
+2 -2
+2 -2
View File
@@ -154,7 +154,7 @@ class GrokResponseProcessor:
created=int(time.time()),
model=model or "grok-4-mini-thinking-tahoe",
choices=[OpenAIChatCompletionChunkChoice(
index=chunk_index,
index=0,
delta=OpenAIChatCompletionChunkMessage(
role="assistant",
content=content
@@ -431,4 +431,4 @@ class GrokResponseProcessor:
finish_reason="stop"
)],
usage=None
)
)