Merge pull request #3978 from pipecat-ai/pk/fix-inaccurate-comment

Fix an out-of-date comment for accuracy. In the OpenAI LLM service, w…
This commit is contained in:
kompfner
2026-03-10 14:29:39 -04:00
committed by GitHub

View File

@@ -327,7 +327,7 @@ class BaseOpenAILLMService(LLMService):
params.update(self._settings.extra)
# Prepend system instruction from constructor, replacing any context system message
# Prepend system instruction from constructor
if self._settings.system_instruction:
messages = params.get("messages", [])
if messages and messages[0].get("role") == "system":