Skip to content

[BUG] OpenAI chatGPT 5.2 provider with bing search enabled errors out with > 128 tool calls #3429

@plapsley

Description

@plapsley

This is for ChatBox 1.18.4 on a Mac M1 running MacOS 15.6.1.

Chat using provider as OpenAI chat completion API, model is gpt-5.2, thinking = heavy. Web search with bing enabled. I asked it:

"XXX is a company that does YYY. What is their funding history? When did they start and how much have they raised, in what rounds, when, and from whom?"

ChatBox fired off a bunch of web queries until this error came back from OpenAI api:

{
"error": {
"message": "Invalid 'messages[28].tool_calls': array too long. Expected an array with maximum length 128, but got an array with length 146 instead.",
"type": "invalid_request_error",
"param": "messages[28].tool_calls",
"code": "array_above_max_length"
}
}

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