mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #14893] [MERGED] fix(tools): not all arguments converted during string formatting #10430
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/14893
Author: @tcx4c70
Created: 6/11/2025
Status: ✅ Merged
Merged: 6/12/2025
Merged by: @tjbck
Base:
dev← Head:fix/log-format-error📝 Commits (1)
809d91afix(tools): not all arguments converted during string formatting📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
backend/open_webui/utils/tools.py(+2 -2)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
This PR fix a bug that output of tool calling is alwasy "not all arguments converted during string formatting" if any exception is throwed during calling tools.
Changed
backend/open_webui/utils/tools.py: Change 2 format strings to f-string (if we use format string, we need to add%s)Fixed
Screenshots or Videos
Before the fix:

After the fix:

Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.