Fix (mixture_of_agents): replace deprecated Gemini model and forward … - #6636
Closed
devorun wants to merge 1 commit into
Closed
Fix (mixture_of_agents): replace deprecated Gemini model and forward …#6636devorun wants to merge 1 commit into
devorun wants to merge 1 commit into
Conversation
…max_tokens to OpenRouter (NousResearch#6621)
teknium1
added a commit
that referenced
this pull request
Apr 23, 2026
…ariant - AUTHOR_MAP entry for 130918800+devorun for #6636 attribution - test_moa_defaults: was a change-detector tied to the exact frontier model list — flips red every OpenRouter churn. Rewritten as an invariant (non-empty, valid vendor/model slugs).
teknium1
added a commit
that referenced
this pull request
Apr 23, 2026
…ariant - AUTHOR_MAP entry for 130918800+devorun for #6636 attribution - test_moa_defaults: was a change-detector tied to the exact frontier model list — flips red every OpenRouter churn. Rewritten as an invariant (non-empty, valid vendor/model slugs).
Contributor
|
Merged via #14764 — your commit was cherry-picked with authorship preserved (rebase merge). Thanks for the fix! |
Collaborator
|
Superseded by #14764 which salvaged this work and has been merged. |
nekorytaylor666
pushed a commit
to nekorytaylor666/hermes-agent
that referenced
this pull request
Apr 24, 2026
…ariant - AUTHOR_MAP entry for 130918800+devorun for NousResearch#6636 attribution - test_moa_defaults: was a change-detector tied to the exact frontier model list — flips red every OpenRouter churn. Rewritten as an invariant (non-empty, valid vendor/model slugs).
aj-nt
pushed a commit
to aj-nt/hermes-agent
that referenced
this pull request
May 1, 2026
…ariant - AUTHOR_MAP entry for 130918800+devorun for NousResearch#6636 attribution - test_moa_defaults: was a change-detector tied to the exact frontier model list — flips red every OpenRouter churn. Rewritten as an invariant (non-empty, valid vendor/model slugs).
donald131
pushed a commit
to donald131/hermes-agent
that referenced
this pull request
May 2, 2026
…ariant - AUTHOR_MAP entry for 130918800+devorun for NousResearch#6636 attribution - test_moa_defaults: was a change-detector tied to the exact frontier model list — flips red every OpenRouter churn. Rewritten as an invariant (non-empty, valid vendor/model slugs).
02356abc
pushed a commit
to 02356abc/hermes-agent
that referenced
this pull request
May 14, 2026
…ariant - AUTHOR_MAP entry for 130918800+devorun for NousResearch#6636 attribution - test_moa_defaults: was a change-detector tied to the exact frontier model list — flips red every OpenRouter churn. Rewritten as an invariant (non-empty, valid vendor/model slugs).
gweeteve
pushed a commit
to gweeteve/hermes-agent
that referenced
this pull request
Jun 2, 2026
…ariant - AUTHOR_MAP entry for 130918800+devorun for NousResearch#6636 attribution - test_moa_defaults: was a change-detector tied to the exact frontier model list — flips red every OpenRouter churn. Rewritten as an invariant (non-empty, valid vendor/model slugs).
waefrebeorn
pushed a commit
to waefrebeorn/slermes
that referenced
this pull request
Jul 2, 2026
…ariant - AUTHOR_MAP entry for 130918800+devorun for NousResearch#6636 attribution - test_moa_defaults: was a change-detector tied to the exact frontier model list — flips red every OpenRouter churn. Rewritten as an invariant (non-empty, valid vendor/model slugs).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…max_tokens to OpenRouter (#6621)
What does this PR do?
Fixes #6621
This PR resolves two critical issues in the mixture_of_agents tool that were causing high latency and avoidable API failures.
Issue: google/gemini-3-pro-preview is deprecated on OpenRouter, resulting in constant 404 errors.
Impact: The tool would retry 6 times per call, adding ~30s of unnecessary latency and flooding logs with tracebacks.
Fix: Updated REFERENCE_MODELS to use the stable google/gemini-2.5-pro.
Issue: The max_tokens parameter was defined but never passed to the OpenRouter API payload.
Impact: OpenRouter would default to the model's maximum output (e.g., 64k+), triggering 402 Insufficient Funds for users with smaller balances, even when the actual response would fit.
Fix: Explicitly added max_tokens to api_params for both reference and aggregator model calls.
Summary of Changes
Updated REFERENCE_MODELS list to ensure 100% model availability.
Wired max_tokens through the entire MoA pipeline to ensure correct budget pre-checks on OpenRouter.