mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-25 04:24:30 -05:00
issue: OpenAPI Tool Servers Error with AWS Bedrock's Anthropic Claude 3.7 #4775
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dulicon on GitHub (Apr 9, 2025).
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.2
Ollama Version (if applicable)
No response
Operating System
Amazon Linux 2
Browser (if applicable)
Firefox 137.0
Confirmation
README.md.Expected Behavior
I am using AWS Bedrock's Anthropic Claude 3.7 through LiteLLM (https://docs.litellm.ai/docs/ ).
I tested Microsoft's playwright-mcp server (https://github.com/microsoft/playwright-mcp ) using mcpo and asked it to open www.google.com.
When testing with the gpt-4o model, the browser opened normally.
Actual Behavior
As shown in the image, the Tool operation occurred twice. The first Tool operation resulted in an error, while the second Tool operation continues to run indefinitely.
Steps to Reproduce
Logs & Screenshots
Additional Information
After debugging the source code locally, it appears to be an index issue when setting up the received tool_calls.
For the gpt-4o model, the tool_calls index comes in as 0.
However, for AWS Bedrock's Anthropic Claude 3.7, the tool_calls index comes in as 1.
When examining the middleware.py source code(Line 1655), it seems the error occurs because the index starts from 1, causing it to be entered twice.
I confirmed that it works properly when I made the following modifications locally for testing:
@tjbck commented on GitHub (Apr 10, 2025):
PR Welcome!
@tjbck commented on GitHub (Apr 11, 2025):
This should also be fixed on LiteLLM as well.