Skip to content

Fix (mixture_of_agents): replace deprecated Gemini model and forward … - #6636

Closed
devorun wants to merge 1 commit into
NousResearch:mainfrom
devorun:patch-38
Closed

Fix (mixture_of_agents): replace deprecated Gemini model and forward …#6636
devorun wants to merge 1 commit into
NousResearch:mainfrom
devorun:patch-38

Conversation

@devorun

@devorun devorun commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

…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.

  1. Replaced Deprecated Gemini Model
    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.

  1. Fixed Missing max_tokens Forwarding
    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.

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).
@teknium1

Copy link
Copy Markdown
Contributor

Merged via #14764 — your commit was cherry-picked with authorship preserved (rebase merge). Thanks for the fix!

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/tools Tool registry, model_tools, toolsets labels Apr 23, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Superseded by #14764 which salvaged this work and has been merged.

@alt-glitch alt-glitch added the duplicate This issue or pull request already exists label Apr 23, 2026
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/tools Tool registry, model_tools, toolsets duplicate This issue or pull request already exists P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: mixture_of_agents REFERENCE_MODELS has dead model + max_tokens param never reaches API call

3 participants