Repository navigation
Conversation
Verify and populate content_length (context window) and max_output (max generation tokens) for all 478 chat/vision models across 47 provider configs, sourced from official API documentation. Key corrections vs initial guesswork: - Claude 4.6+ gen (opus 4.6/4.7/4.8, sonnet 4.6): 1M context + 128K output - DeepSeek V4: 1M context + 384K output (not 8K) - GPT-5 series: max_output = 128K (not 65K) - Llama 4 Scout: 10M context - Mistral: max_output equals context (not fixed 8K) - Gemini 1.5 Pro: 2M context - Nova series: max_output = 5K Data collected via 12 parallel agents scraping official docs (OpenAI, Anthropic, Google, Bedrock, Cohere, xAI, Meta, DeepSeek, Qwen, Mistral, GLM, Kimi, etc.) plus targeted web verification. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
- Remove meta-llama/llama-4-scout-17b-16e-instruct and qwen/qwen3-32b from groq.json (deprecated by Groq on 2026-07-17) - Fix Replicate Llama 4 max_output: 8192 → 131072 (provider supports max_tokens up to 131072) Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
MiniMax official API docs confirm all M2 series (M2/M2.1/M2.5/M2.7) have a context window of 204,800 tokens, not 1,000,000. Source: https://platform.minimax.io/docs/guides/text-generation Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (49)
🔥 Files not summarized due to errors (1)
📝 WalkthroughWalkthroughThis PR updates model metadata across provider configuration files. It replaces ChangesModel limit metadata
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested labels: Suggested reviewers: Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Replace max_tokens with content_length + max_output (2178 entries). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
7a04db8 to
82ebcd1
Compare
|
Superseded by new PR |
Summary
Bridge the new
content_length/max_outputfields to existingmax_tokens/max_lengthread paths in both Go and Python.Changes
Config files
conf/all_models.json:max_tokens→content_length+max_output(2178 entries)conf/llm_factories.json:max_tokens→content_length+max_output(940 entries)max_output: 1048576 → 393216 (official spec: 384K)Python
resolve_model_config(): readsmax_outputfrom factory info whenmax_tokensabsentLLMBundle.__init__(): falls back tomax_outputifmax_tokensabsentTests
gitee_test.goassertion for deepseek-v4-pro max_output (393216)Why
PR #17807 split
max_tokensintocontent_length+max_outputbut didn't update the read paths. This caused:LLMBundle.max_lengthto fall back to 8192resolve_model_config()to miss the new fields🤖 Generated with Claude Code