Skip to content

Commit

Permalink
add index in non streamin chat too
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiPresario001 committed Jan 7, 2025
1 parent b253de6 commit dad8181
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions validator/organic_node/src/endpoints/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ async def _handle_nonstream_response(generator: AsyncGenerator[str, None], chat=
{
"choices": [
{
"index": 0,
"finish_reason": "stop",
"message": {
"content": all_content,
"role": role
Expand Down

0 comments on commit dad8181

Please sign in to comment.