mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-08 03:01:47 +00:00
fix(agent): keep Nous GPT-5 fallback on chat completions
This commit is contained in:
parent
24d48ffb82
commit
9076a2e74e
2 changed files with 25 additions and 2 deletions
|
|
@ -3065,6 +3065,10 @@ class AIAgent:
|
|||
) -> bool:
|
||||
"""Return True when this provider/model pair should use Responses API."""
|
||||
normalized_provider = (provider or "").strip().lower()
|
||||
# Nous serves GPT-5.x models via its OpenAI-compatible chat
|
||||
# completions endpoint; its /v1/responses endpoint returns 404.
|
||||
if normalized_provider == "nous":
|
||||
return False
|
||||
if normalized_provider == "copilot":
|
||||
try:
|
||||
from hermes_cli.models import _should_use_copilot_responses_api
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue