fix: remove redundant instructions override in run_inference
The override would re-add `instructions` after the adapter had intentionally converted it to a developer message for empty contexts. Added a regression test.
This commit is contained in:
@@ -385,10 +385,6 @@ class OpenAIResponsesLLMService(LLMService):
|
||||
# Override for non-streaming
|
||||
params["stream"] = False
|
||||
|
||||
# Override instructions if caller provided one explicitly
|
||||
if system_instruction is not None:
|
||||
params["instructions"] = system_instruction
|
||||
|
||||
if max_tokens is not None:
|
||||
params["max_output_tokens"] = max_tokens
|
||||
|
||||
|
||||
Reference in New Issue
Block a user