Skip to content

Error: OpenAI GPT-4.1 mini - 400 #9785

@dapavella

Description

@dapavella

Error Details

Model: OpenAI GPT-4.1 mini
Provider: openai
Status Code: 400

Error Output

400 Invalid 'messages[101].tool_calls[0].function.name': empty string. Expected a string with minimum length 1, but got an empty string instead.

Additional Context
The error accurs on a new esp32 idf platform.io project after:

  • adding rules
  • several messages in Agent mode including task planning
  • message to start executing task (Agent mode)
  • and finally got a error after asking to fix errors (I meant to fix build error, but the model found and asked if it could fix some logic errors, I answered "yes")
  • after that any message in any mode gives the above error

How can I reset this state? Or maybe overcome an error?
I'm using an online OpenAI model throught OpenAI api, not some local one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:toolsRelates to tool usagekind:bugIndicates an unexpected problem or unintended behavior

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions