Skip to content

Error says Invalid parameter: messages with role 'tool' must be a response to a preceeding message with 'tool_calls' #12

@davideuler

Description

@davideuler

I've integrated open-webui-tools MCP_Pipeline with open-webui. When I sent "what’s time it is" or something like "what's the latest news at San Francisco", error shows as:

{"error": {"message": "API error: {\n "error": {\n "message": "Invalid parameter: messages with role 'tool' must be a response to a preceeding message with 'tool_calls'.",\n "type": "invalid_request_error",\n "param": "messages.[3].role",\n "code": null\n }\n}", "type": "internal_error", "param": null, "code": "500"}}

I've configured OpenAI gpt-4o as pipeline model instead of ollama.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions