Skip to content
Closed
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 hermes_cli/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ def determine_api_mode(provider: str, base_url: str = "") -> str:
return "anthropic_messages"
if url_lower.endswith("/anthropic") or "api.anthropic.com" in url_lower:
return "anthropic_messages"
if "api.openai.com" in url_lower:
if base_url_hostname(base_url) == "api.openai.com":

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.

Please add a regression test through the known-provider path (get_provider(provider) is not None); the existing hostname tests use provider="" and only cover the adjacent unknown-provider branch.

return "codex_responses"
return TRANSPORT_TO_API_MODE.get(pdef.transport, "chat_completions")

Expand Down