fix(providers): sanitize azure responses input messages

This commit is contained in:
Xubin Ren
2026-04-02 13:43:34 +08:00
committed by Xubin Ren
parent 61d7411238
commit ded0967c18
2 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ class AzureOpenAIProvider(LLMProvider):
) -> dict[str, Any]:
"""Build the Responses API request body from Chat-Completions-style args."""
deployment = model or self.default_model
instructions, input_items = convert_messages(messages)
instructions, input_items = convert_messages(self._sanitize_empty_content(messages))
body: dict[str, Any] = {
"model": deployment,