Skip to content

Commit 1da30bc

Browse files
authored
feat: Update Groq models list (add production/preview, remove deprecated) (#3774)
1 parent b5dee9b commit 1da30bc

File tree

2 files changed

+37
-58
lines changed

2 files changed

+37
-58
lines changed

pydantic_ai_slim/pydantic_ai/models/__init__.py

Lines changed: 26 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -232,29 +232,22 @@
232232
'gateway/google-vertex:gemini-3-pro-preview',
233233
'gateway/google-vertex:gemini-flash-latest',
234234
'gateway/google-vertex:gemini-flash-lite-latest',
235-
'gateway/groq:deepseek-r1-distill-llama-70b',
236-
'gateway/groq:deepseek-r1-distill-qwen-32b',
237-
'gateway/groq:distil-whisper-large-v3-en',
238-
'gateway/groq:gemma2-9b-it',
239235
'gateway/groq:llama-3.1-8b-instant',
240-
'gateway/groq:llama-3.2-11b-vision-preview',
241-
'gateway/groq:llama-3.2-1b-preview',
242-
'gateway/groq:llama-3.2-3b-preview',
243-
'gateway/groq:llama-3.2-90b-vision-preview',
244-
'gateway/groq:llama-3.3-70b-specdec',
245236
'gateway/groq:llama-3.3-70b-versatile',
246-
'gateway/groq:llama-guard-3-8b',
247-
'gateway/groq:llama3-70b-8192',
248-
'gateway/groq:llama3-8b-8192',
249-
'gateway/groq:mistral-saba-24b',
250-
'gateway/groq:moonshotai/kimi-k2-instruct',
251-
'gateway/groq:playai-tts-arabic',
252-
'gateway/groq:playai-tts',
253-
'gateway/groq:qwen-2.5-32b',
254-
'gateway/groq:qwen-2.5-coder-32b',
255-
'gateway/groq:qwen-qwq-32b',
256-
'gateway/groq:whisper-large-v3-turbo',
237+
'gateway/groq:meta-llama/llama-guard-4-12b',
238+
'gateway/groq:openai/gpt-oss-120b',
239+
'gateway/groq:openai/gpt-oss-20b',
257240
'gateway/groq:whisper-large-v3',
241+
'gateway/groq:whisper-large-v3-turbo',
242+
'gateway/groq:meta-llama/llama-4-maverick-17b-128e-instruct',
243+
'gateway/groq:meta-llama/llama-4-scout-17b-16e-instruct',
244+
'gateway/groq:meta-llama/llama-prompt-guard-2-22m',
245+
'gateway/groq:meta-llama/llama-prompt-guard-2-86m',
246+
'gateway/groq:moonshotai/kimi-k2-instruct-0905',
247+
'gateway/groq:openai/gpt-oss-safeguard-20b',
248+
'gateway/groq:playai-tts',
249+
'gateway/groq:playai-tts-arabic',
250+
'gateway/groq:qwen/qwen-3-32b',
258251
'gateway/openai:chatgpt-4o-latest',
259252
'gateway/openai:codex-mini-latest',
260253
'gateway/openai:computer-use-preview-2025-03-11',
@@ -382,29 +375,22 @@
382375
'grok:grok-4-fast',
383376
'grok:grok-4',
384377
'grok:grok-code-fast-1',
385-
'groq:deepseek-r1-distill-llama-70b',
386-
'groq:deepseek-r1-distill-qwen-32b',
387-
'groq:distil-whisper-large-v3-en',
388-
'groq:gemma2-9b-it',
389378
'groq:llama-3.1-8b-instant',
390-
'groq:llama-3.2-11b-vision-preview',
391-
'groq:llama-3.2-1b-preview',
392-
'groq:llama-3.2-3b-preview',
393-
'groq:llama-3.2-90b-vision-preview',
394-
'groq:llama-3.3-70b-specdec',
395379
'groq:llama-3.3-70b-versatile',
396-
'groq:llama-guard-3-8b',
397-
'groq:llama3-70b-8192',
398-
'groq:llama3-8b-8192',
399-
'groq:mistral-saba-24b',
400-
'groq:moonshotai/kimi-k2-instruct',
401-
'groq:playai-tts-arabic',
402-
'groq:playai-tts',
403-
'groq:qwen-2.5-32b',
404-
'groq:qwen-2.5-coder-32b',
405-
'groq:qwen-qwq-32b',
406-
'groq:whisper-large-v3-turbo',
380+
'groq:meta-llama/llama-guard-4-12b',
381+
'groq:openai/gpt-oss-120b',
382+
'groq:openai/gpt-oss-20b',
407383
'groq:whisper-large-v3',
384+
'groq:whisper-large-v3-turbo',
385+
'groq:meta-llama/llama-4-maverick-17b-128e-instruct',
386+
'groq:meta-llama/llama-4-scout-17b-16e-instruct',
387+
'groq:meta-llama/llama-prompt-guard-2-22m',
388+
'groq:meta-llama/llama-prompt-guard-2-86m',
389+
'groq:moonshotai/kimi-k2-instruct-0905',
390+
'groq:openai/gpt-oss-safeguard-20b',
391+
'groq:playai-tts',
392+
'groq:playai-tts-arabic',
393+
'groq:qwen/qwen-3-32b',
408394
'heroku:amazon-rerank-1-0',
409395
'heroku:claude-3-5-haiku',
410396
'heroku:claude-3-5-sonnet-latest',

pydantic_ai_slim/pydantic_ai/models/groq.py

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -63,33 +63,26 @@
6363
) from _import_error
6464

6565
ProductionGroqModelNames = Literal[
66-
'distil-whisper-large-v3-en',
67-
'gemma2-9b-it',
68-
'llama-3.3-70b-versatile',
6966
'llama-3.1-8b-instant',
70-
'llama-guard-3-8b',
71-
'llama3-70b-8192',
72-
'llama3-8b-8192',
67+
'llama-3.3-70b-versatile',
68+
'meta-llama/llama-guard-4-12b',
69+
'openai/gpt-oss-120b',
70+
'openai/gpt-oss-20b',
7371
'whisper-large-v3',
7472
'whisper-large-v3-turbo',
7573
]
7674
"""Production Groq models from <https://console.groq.com/docs/models#production-models>."""
7775

7876
PreviewGroqModelNames = Literal[
77+
'meta-llama/llama-4-maverick-17b-128e-instruct',
78+
'meta-llama/llama-4-scout-17b-16e-instruct',
79+
'meta-llama/llama-prompt-guard-2-22m',
80+
'meta-llama/llama-prompt-guard-2-86m',
81+
'moonshotai/kimi-k2-instruct-0905',
82+
'openai/gpt-oss-safeguard-20b',
7983
'playai-tts',
8084
'playai-tts-arabic',
81-
'qwen-qwq-32b',
82-
'mistral-saba-24b',
83-
'qwen-2.5-coder-32b',
84-
'qwen-2.5-32b',
85-
'deepseek-r1-distill-qwen-32b',
86-
'deepseek-r1-distill-llama-70b',
87-
'llama-3.3-70b-specdec',
88-
'llama-3.2-1b-preview',
89-
'llama-3.2-3b-preview',
90-
'llama-3.2-11b-vision-preview',
91-
'llama-3.2-90b-vision-preview',
92-
'moonshotai/kimi-k2-instruct',
85+
'qwen/qwen-3-32b',
9386
]
9487
"""Preview Groq models from <https://console.groq.com/docs/models#preview-models>."""
9588

0 commit comments

Comments
 (0)