Skip to content

Groq: request rejected with "property 'prompt_cache_key' is unsupported" (1.13.0) #760

Done

Description

@cucchetti

Problem

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:

  1. A Groq provider adapter (like the Mistral one) that drops prompt_cache_key in transform_messages / the payload.
  2. 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

  1. added a commit that references this issue on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions