Skip to content
Snippets Groups Projects
Commit a2264f46 authored by timothycarambat's avatar timothycarambat
Browse files

add `index` to response object for marshalling

resolves #2956
parent 4d5d8d4d
Branches
Tags
No related merge requests found
......@@ -481,6 +481,7 @@ function formatJSON(
model: model,
choices: [
{
index: 0,
[chunked ? "delta" : "message"]: {
role: "assistant",
content: chat.textResponse,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment