mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix(model_metadata): add gemma-4 and gemma4 context length entries
Fixes #12976 The generic "gemma": 8192 fallback was incorrectly matching gemma4:31b-cloud before the more specific Gemma 4 entries could match, causing Hermes to assign only 8K context instead of 262K. Added "gemma-4" and "gemma4" entries before the fallback to correctly handle Gemma 4 model naming conventions.
This commit is contained in:
parent
51ca575994
commit
66d2d7090e
1 changed files with 2 additions and 0 deletions
|
|
@ -133,6 +133,8 @@ DEFAULT_CONTEXT_LENGTHS = {
|
|||
# Google
|
||||
"gemini": 1048576,
|
||||
# Gemma (open models served via AI Studio)
|
||||
"gemma-4": 256000, # Gemma 4 family
|
||||
"gemma4": 256000, # Ollama-style naming (e.g. gemma4:31b-cloud)
|
||||
"gemma-4-31b": 256000,
|
||||
"gemma-3": 131072,
|
||||
"gemma": 8192, # fallback for older gemma models
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue