Python
Groq: GPT-OSS rows take tools one at a time
Rohit C Prasad25b30125dc78
diff --git a/coworker/providers/matrix.py b/coworker/providers/matrix.pyindex 8cb9ff10..436848c3 100644--- a/coworker/providers/matrix.py+++ b/coworker/providers/matrix.py@@ -444,12 +444,25 @@ MATRIX: dict[str, ModelEntry] = {# -- Groq (LPU inference) ---------------------------------------------------# Groq keeps its own short ids. Rows and windows from console.groq.com/docs/models# (production table, read 2026-10-25: 131,072 context each; the earlier Maverick,- # R1-distill and QwQ ids are no longer listed). Tool use per console.groq.com/docs/tool-use.+ # R1-distill and QwQ ids are no longer listed). console.groq.com/docs/tool-use (same+ # day): all three take tools; only Llama 3.3 does parallel tool use."groq:llama-3.3-70b-versatile": ModelEntry("Llama 3.3 70B Versatile · via Groq", _AGENTIC, 131_072),- "groq:openai/gpt-oss-120b": ModelEntry("GPT-OSS 120B · via Groq", _AGENTIC, 131_072),- "groq:openai/gpt-oss-20b": ModelEntry("GPT-OSS 20B · via Groq", _AGENTIC, 131_072),+ "groq:openai/gpt-oss-120b": ModelEntry(+ "GPT-OSS 120B · via Groq",+ ModelCapabilities(+ tools=True, vision=False, parallel_tool_calls=False, streaming=True+ ),+ 131_072,+ ),+ "groq:openai/gpt-oss-20b": ModelEntry(+ "GPT-OSS 20B · via Groq",+ ModelCapabilities(+ tools=True, vision=False, parallel_tool_calls=False, streaming=True+ ),+ 131_072,+ ),}diff --git a/tests/test_providers.py b/tests/test_providers.pyindex b82e3b33..f5d0b16c 100644--- a/tests/test_providers.py+++ b/tests/test_providers.py@@ -569,6 +569,15 @@ def test_matrix_labels_and_custom_model_fallback():assert caps.tools and not caps.parallel_tool_calls+def test_groq_gpt_oss_rows_do_not_claim_parallel_tool_calls():+ """console.groq.com/docs/tool-use (2026-10-25): GPT-OSS on Groq takes tools but not+ parallel tool use; Llama 3.3 70B does both."""+ assert capabilities_for("groq:llama-3.3-70b-versatile").parallel_tool_calls+ for mid in ("groq:openai/gpt-oss-120b", "groq:openai/gpt-oss-20b"):+ caps = capabilities_for(mid)+ assert caps.tools and not caps.parallel_tool_calls++def test_reseller_descriptors_and_matrix_stay_in_lockstep():"""Reseller suggested models derive from the matrix, and each descriptor'srecommended model must be one of them (set_provider's auto-add depends on it)."""