fix(moa): replace deprecated gemini-3-pro-preview + forward max_tokens - #14764
Merged
Conversation
teknium1
force-pushed
the
hermes/hermes-2f58d50c
branch
from
April 23, 2026 22:14
6991f1b to
b257925
Compare
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.
Salvage of #6636 (@devorun) onto current main.
Summary
Stops MoA from 404-looping on OpenRouter after
google/gemini-3-pro-previewwas pulled upstream, and forwardsmax_tokenson both reference and aggregator calls (was missing — the API silently accepted the param-less request but user-set limits were ignored).Reported via Norbert's Discord cron failure (paste.rs/Q5WEB): 6 retries × 4 frontier models × 600s idle timeout = one dead cron job + $4.63 burned.
Changes
google/gemini-3-pro-preview→google/gemini-2.5-pro; addmax_tokensto bothchat.completions.create()callsValidation
Does NOT fix the bigger cost problem (MoA still calls 3+ frontier models when the agent decides to use it, and cron currently ignores
hermes toolsconfig so users can't disable it there). Those are separate follow-ups — next PR wires cron to_get_platform_tools()sohermes toolsactually gates cron toolsets.Closes #6636.