Skip to content

v0.14.1

Choose a tag to compare

@MarcelloDuarte MarcelloDuarte released this 29 Jul 22:38
· 6 commits to main since this release
3624236

Adds forced tool choice, which Groq was missing since it was left out of the v0.13 release. Until now it accepted the toolChoice option and silently dropped it.

Groq's API is OpenAI-compatible, so the mapping matches deepseek and openai:

toolChoice Sent as
'auto' "auto"
'none' "none"
'required' "required"
['name' => 'x'] {"type":"function","function":{"name":"x"}}

Validation lives in core's ToolChoice::fromOption() and throws before any HTTP call. Additive and backward compatible: omitting the option sends nothing, exactly as before.