Skip to content

refusal field in response breaks responseΒ #1178

@mase-ppi

Description

@mase-ppi

Bug description
All calls to OpenAIs chat completion since some hours seem to fail, since the reply from openai now includes the refusal field. In normal situations this field is returned "null", which is a bug from openai or a new feature, i guess? So, for me, nothing is working anymore.

Environment
Spring AI version 1.0.0-SNAPSHOT
Java version 17
OpenAI tested with function calls and gpt-4o and -mini

Steps to reproduce
I assume, just test against current chat completion api

Expected behavior
field is recognized

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