Skip to content

Commit

Permalink
add index to response object for marshalling
Browse files Browse the repository at this point in the history
resolves #2956
  • Loading branch information
timothycarambat committed Jan 14, 2025
1 parent 4d5d8d4 commit a2264f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/utils/chats/openaiCompatible.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ function formatJSON(
model: model,
choices: [
{
index: 0,
[chunked ? "delta" : "message"]: {
role: "assistant",
content: chat.textResponse,
Expand Down

0 comments on commit a2264f4

Please sign in to comment.