diff --git a/relay/channel/openai/model.go b/relay/channel/openai/model.go index a0aff479e8..b24485a873 100644 --- a/relay/channel/openai/model.go +++ b/relay/channel/openai/model.go @@ -121,6 +121,7 @@ type ChatCompletionsStreamResponseChoice struct { Index int `json:"index"` Delta struct { Content string `json:"content"` + Role string `json:"role,omitempty"` } `json:"delta"` FinishReason *string `json:"finish_reason,omitempty"` }