Skip to content

Structured chat does not work with Groq models #930

@CoryMcCartan

Description

@CoryMcCartan

Brand new to ellmer. This code seemed to work with other model providers, but not Groq:

chat = chat_groq(model="openai/gpt-oss-20b")
chat$chat_structured("Is Boston the capital of MA?", type=type_boolean())
#> Error in `req_perform()`:
#> ! HTTP 400 Bad Request.
#> ℹ invalid JSON schema for response_format: 'structured_data':
#>   `additionalProperties:false` must be set on every object
#> Run `rlang::last_trace()` to see where the error occurred.

Happy to submit a PR if this is e.g. a recent change in their API.

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