mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #15825] [MERGED] fix: ollama tool call #47001
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/15825
Author: @EntropyYue
Created: 7/17/2025
Status: ✅ Merged
Merged: 7/18/2025
Merged by: @tjbck
Base:
dev← Head:fix/ollama-tool-call📝 Commits (1)
260137ffix: ollama tool call📊 Changes
1 file changed (+5 additions, -6 deletions)
View changed files
📝
backend/open_webui/utils/response.py(+5 -6)📄 Description
Changelog Entry
Description
Fixed the issue with multiple tool calls in Ollama. The
indexfor Ollama's tool calls is located inside thefunctionkey. When using multiple tools, the code was unable to retrieve the correctindex, instead using a default value of 0 for all tools, which led to errors. Previously, the code worked correctly when only a single tool was called because there was only one requiredindex.fix: #15546
fix: #15350
Fixed
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.