From c880b4a9a3db0d156a16e58d34fa5cbc239def10 Mon Sep 17 00:00:00 2001 From: JustSong Date: Sun, 25 Feb 2024 19:17:37 +0800 Subject: [PATCH] fix: fix missing index in ChatCompletionsStreamResponseChoice (#1037) --- relay/channel/openai/model.go | 1 + 1 file changed, 1 insertion(+) diff --git a/relay/channel/openai/model.go b/relay/channel/openai/model.go index c09f2334..a0aff479 100644 --- a/relay/channel/openai/model.go +++ b/relay/channel/openai/model.go @@ -118,6 +118,7 @@ type ImageResponse struct { } type ChatCompletionsStreamResponseChoice struct { + Index int `json:"index"` Delta struct { Content string `json:"content"` } `json:"delta"`