Fix index assignment in OpenAIChatCompletionChunkChoice
This commit is contained in:
1 parent
6599b1b283
commit
aa02c32fa1
1 file changed
+2
-2
@@ -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
|
||||
)
|
||||
)
|
||||
Reference in new issue
Block a user