Spaces:
Sleeping
Refresh Groq model lineup — drop Llama 3.x/Gemma, add GPT-OSS + friends
Browse filesUser-facing dropdown now defaults to GPT-OSS 120B (OpenAI's open-weight
flagship on Groq) and includes:
- openai/gpt-oss-120b — default, strongest open-weight reasoning
- openai/gpt-oss-20b — fast/cheap GPT-OSS
- qwen-2.5-coder-32b — code-specialized
- deepseek-r1-distill-qwen-32b — reasoning-distilled, smaller than 70b
- meta-llama/llama-4-scout-17b-16e-instruct — Llama 4 MoE
Two-stage retry's fast-tier constant updated from llama-3.1-8b-instant
to openai/gpt-oss-20b to keep the escalation logic functional with the
new lineup.
If any of these IDs aren't on the user's Groq tier they can be removed
individually from GROQ_MODELS — the provider router treats anything
without a claude- prefix as Groq, so no code changes are needed when
swapping models in or out.
103 unmodified lines104105106107108109110111112113364 unmodified lines478479480481482483484485486103 unmodified linesGROQ_MODELS = ["llama-3.3-70b-versatile","deepseek-r1-distill-llama-70b","gemma2-9b-it","llama-3.1-8b-instant",]CLAUDE_MODELS = [364 unmodified lines# Two-stage retry: for Groq, try the cheap 8b on attempt 0 and# escalate to the user's chosen model on retry. Skip for Claude# (no clear cheap counterpart) and for users who explicitly picked 8b.fast_model = Noneif not claude and model_name != "llama-3.1-8b-instant":fast_model = "llama-3.1-8b-instant"lean_env, retriever = _get_components()103 unmodified lines104105106107108109110111112113114364 unmodified lines479480481482483484485486487488489490491103 unmodified linesGROQ_MODELS = ["openai/gpt-oss-120b", # strongest open-weight option on Groq"openai/gpt-oss-20b", # fast / cheap GPT-OSS"qwen-2.5-coder-32b", # code-specialized"deepseek-r1-distill-qwen-32b", # reasoning-distilled, smaller than 70b"meta-llama/llama-4-scout-17b-16e-instruct", # Llama 4 MoE]CLAUDE_MODELS = [364 unmodified lines# Two-stage retry: for Groq, try the cheap 8b on attempt 0 and# escalate to the user's chosen model on retry. Skip for Claude# (no clear cheap counterpart) and for users who explicitly picked 8b.# Two-stage retry: cheapest Groq model first, escalate to the user's# pick on retry. Skipped for Claude (no clear cheap counterpart) and# when the user explicitly picks the fast tier itself.fast_model = NoneFAST_TIER = "openai/gpt-oss-20b"if not claude and model_name != FAST_TIER:fast_model = FAST_TIERlean_env, retriever = _get_components()