Fix an out-of-date comment for accuracy. In the OpenAI LLM service, we *don't* replace any context system messages with system instructions from the constructor.

This commit is contained in:
Paul Kompfner
2026-03-10 13:59:01 -04:00
parent c25d5af8c8
commit 3790640322

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":