From b7585ca7382dc75aef34cc68a959b595f7d3d8ac Mon Sep 17 00:00:00 2001 From: Alex O'Connell <35843486+acon96@users.noreply.github.com> Date: Mon, 2 Feb 2026 02:30:04 -0500 Subject: [PATCH] fix(api): Add missing field in initial OpenAI streaming response (#8341) Add missing field in initial OpenAI streaming response Signed-off-by: Alex O'Connell <35843486+acon96@users.noreply.github.com> --- core/http/endpoints/openai/chat.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/http/endpoints/openai/chat.go b/core/http/endpoints/openai/chat.go index b35f2bab8..753936124 100644 --- a/core/http/endpoints/openai/chat.go +++ b/core/http/endpoints/openai/chat.go @@ -36,6 +36,7 @@ func ChatEndpoint(cl *config.ModelConfigLoader, ml *model.ModelLoader, evaluator Created: created, Model: req.Model, // we have to return what the user sent here, due to OpenAI spec. Choices: []schema.Choice{{Delta: &schema.Message{Role: "assistant"}, Index: 0, FinishReason: nil}}, + Object: "chat.completion.chunk", } responses <- initialMessage