You've already forked ModuleLLM-OpenAI-Plugin
mirror of
https://github.com/m5stack/ModuleLLM-OpenAI-Plugin.git
synced 2026-05-20 11:37:26 -07:00
6e8b3d9e8e
The OpenAI chat completion API shows that streaming chat completion chunks should have the object type "chat.completion.chunk" in the completion marker chunk. Without this, some parsers of the OpenAI API don't handle chat completion streaming responses from this server. This commit fixes the lack of an object type, keeps compliance with the described API in the OpenAI docs (see https://platform.openai.com/docs/api-reference/chat/create), and ensures parsers like the Home Assistant HomeLLM addon work with it.