You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Groq: request rejected with "property 'prompt_cache_key' is unsupported" (1.13.0) #760
With the Groq API (--model groq/openai/gpt-oss-120b), every request fails on cecli 1.13.0:
API Error: {"error":{"message":"property 'prompt_cache_key' is unsupported","type":"invalid_request_error"}}
Groq's chat completions endpoint validates the body strictly and rejects unknown properties.
Cause
In cecli/models.py the request kwargs always get kwargs["prompt_cache_key"] = uuid or GLOBAL_ID, and cecli/helpers/llms/domains/chat.py forwards it into the payload. There is no option to turn it off: --no-cache-prompts does not change it.
History
On 1.10.1 and 1.12.0 the same setup failed with property 'reasoning_content' is unsupported. Since 1.13.0 that one is gone (thanks for the echoes_reasoning_content / transform_messages mechanism), so prompt_cache_key is now the only blocker I found.
Suggestion
Either of these would fix it:
A Groq provider adapter (like the Mistral one) that drops prompt_cache_key in transform_messages / the payload.
A general switch to omit prompt_cache_key for strict OpenAI-compatible endpoints.
Reproduce
cecli --model groq/openai/gpt-oss-120b --no-git --yes-always --message "add a comment on the first line of file.py" file.py
with GROQ_API_KEY set. I tested it with uvx --from cecli-dev==1.13.0 cecli ....
Activity
#760: Remove prompt_cache_key for groq API