mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[GH-ISSUE #4793] list parameters broken in tools #117044
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 @gkns1 on GitHub (Aug 21, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/4793
Bug Report
Installation Method
docker
Environment
Open WebUI v0.3.14
Confirmation:
Expected Behavior:
Tools work as before.
Actual Behavior:
Tool errors out with list parameter type.
Description
Bug Summary:
This might be related to this file.
50d53c6f8d/backend/utils/schemas.py (L86)Since updating to today's release, my tools stopped working. If the commit from 2 days ago is in the release, I'm guessing line 86 breaks list parameters in tools. changing "array" to "list" and restarting the backend fixes it for me.
Reproduction Details
Steps to Reproduce:
use "list" or "List[str]" as the type of a param in a tool.
e.g.
Logs and Screenshots
Docker Container Logs:
See above
Additional Information
@justinh-rahb commented on GitHub (Aug 21, 2024):
Duplicate:
@gkns1 commented on GitHub (Aug 26, 2024):
@justinh-rahb Still getting the error after updating to v0.3.15 with watchtower. My modification makes it go away.
@justinh-rahb commented on GitHub (Aug 26, 2024):
Tools are generally working on my end. Git commit hash e2b7296
@gkns1 commented on GitHub (Aug 27, 2024):
Watchtower updated to 0.3.16 today and the error came back. The tools where I don't use list/List[str] work fine.
I made a simple example that triggers the error for me.
What I didn't mention and it may matter - I'm testing this with 4o mini through litellm proxy connection.
prompt with the tool manually selected:
Print back a list of those strings: 1, 2, something, whateverlog:
The log after modification, restart and using the same tool+prompt:
response

edit: Worth mentioning maybe - I also have the context clip filter turned on globally. (from the community functions)
@robert-mcdermott commented on GitHub (Aug 27, 2024):
I'm having this exact error, my functions stopped working, running v0.3.15