Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion run_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ def __init__(
# does NOT support the Responses API — skip the upgrade for Azure

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Current main intentionally keeps generic provider="custom" GPT-5 relays on Chat Completions (run_agent.py:1397-1401, commit 0e4c879) because many OpenAI-compatible relays do not implement full Responses semantics. This broad condition would undo that regression fix and also override an explicit api_mode="chat_completions" choice.

# (openai.azure.com), even though it looks OpenAI-compatible.
if (
api_mode is None
(api_mode is None or api_mode == "chat_completions")
and self.api_mode == "chat_completions"
and self.provider != "copilot-acp"
and not str(self.base_url or "").lower().startswith("acp://copilot")
Expand Down