add index to response object for marshalling

resolves 
This commit is contained in:
timothycarambat 2025-01-14 14:43:00 -08:00
parent 4d5d8d4dec
commit a2264f46ff

View file

@ -481,6 +481,7 @@ function formatJSON(
model: model,
choices: [
{
index: 0,
[chunked ? "delta" : "message"]: {
role: "assistant",
content: chat.textResponse,