mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-12 13:52:15 +00:00
fix(moa): preserve Nous provider identity for references
This commit is contained in:
parent
7c38249c79
commit
9229d0db17
1 changed files with 4 additions and 3 deletions
|
|
@ -96,9 +96,10 @@ def _slot_runtime(slot: dict[str, str]) -> dict[str, Any]:
|
||||||
resolved_provider = str(rt.get("provider") or provider).strip().lower()
|
resolved_provider = str(rt.get("provider") or provider).strip().lower()
|
||||||
# call_llm treats an explicit base_url as a custom endpoint. That is
|
# call_llm treats an explicit base_url as a custom endpoint. That is
|
||||||
# correct for ordinary OpenAI-compatible targets, but wrong for OAuth /
|
# correct for ordinary OpenAI-compatible targets, but wrong for OAuth /
|
||||||
# adapter-backed providers whose provider branch adds auth headers and
|
# provider-backed targets whose provider branch adds auth refresh,
|
||||||
# request-shape adapters. Keep those providers identified by name.
|
# request metadata, or request-shape adapters. Keep those providers
|
||||||
if resolved_provider in {"openai-codex", "xai-oauth"}:
|
# identified by name.
|
||||||
|
if resolved_provider in {"nous", "openai-codex", "xai-oauth"}:
|
||||||
return out
|
return out
|
||||||
# Pass the resolved endpoint through so call_llm builds the request for
|
# Pass the resolved endpoint through so call_llm builds the request for
|
||||||
# the provider's actual API surface instead of auto-detecting. base_url
|
# the provider's actual API surface instead of auto-detecting. base_url
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue