Bug: reasoning_effort sent to Groq API for models with reasoning: true, causing 400 error
invalid
When a Groq-hosted model has reasoning: true in its model config, Pi incorrectly sends a reasoning_effort parameter to Groq's API. Groq's API
rejects this with a 400 error:
```
Error: 400 'reasoning_effort' : value is not one of the allowed values ['none','default','low','medium','high']
```
Root Cause:
In detectCompat(), the supportsReasoningEffort flag is set as:
```js
supportsReasoningEffort: !isGrok && !isZai,
```
isGroq is correctly detected but not excluded from supportsReasoningEffort. This causes Pi to send its internal reasoning effort values (e.g.
minimal, xhigh) to Groq, which doesn't accept them.
Fix:
```js
// Before:
supportsReasoningEffort: !isGrok && !isZai,
// After:
supportsReasoningEffort: !isGrok && !isZai && !isGroq,
```
Workaround (for users):
Press Shift+Tab to cycle thinking level to off before using Groq models.
File: node_modules/@mariozechner/pi-ai/dist/providers/openai-completions.js
关闭于 2026-04-25 1 条评论