From eca15ed16574a13631e99cfeecba61edd10bb432 Mon Sep 17 00:00:00 2001 From: Alex O'Connell <35843486+acon96@users.noreply.github.com> Date: Mon, 2 Feb 2026 01:41:17 +0000 Subject: [PATCH] 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 b35f2bab82a1..75393612434b 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