[GH-ISSUE #24101] issue: Tool call fails when used along with @model_name with in a channel or when a second model is referenced inside a chat. #123495

Closed
opened 2026-05-21 02:48:20 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @llmlearn2025 on GitHub (Apr 24, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24101

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

0.9.1

Ollama Version (if applicable)

lm studio 4.12

Operating System

windows with docker

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

user requests with tool calls are expected to generate response even when a model is called using @model inside a chat or a channel

Actual Behavior

@model with tool call fails. general chat produces response, where ever tool call is needed, it fails.

Steps to Reproduce

  1. enable tool call on two models
  2. start a fresh chat and generate a result using tool call.
  3. use @model_2 to prompt the model 2 to use the tool and generate response
  4. the response -<|start|>assistant<|channel|>commentary to=functions.tool_search_news_post<|message|>{"query":"cryptocurrency","time_range":"week"}
  5. same model 2 in fresh chat works perfectly with the same tool call.. only when used with in a chat using @ or used inside a channel via @

Logs & Screenshots

Image

The docker log shows that the tool executed well -

2026-04-24 17:43:48.278 | INFO | open_webui.retrieval.utils:query_doc:270 - query_doc:result '6089154e-3d65-4143-80de-7a701bca649f', '29e955ff-4e60-4ac1-bbb3-169b3bde596d', 'e2d432df-0af2-4615-9eb9-30deb3bc3d4c' {'language': 'en', 'embedding_config': "{'engine': '', 'model': 'sentence-transformers/all-MiniLM-L6-v2'}", 'title': 'Crypto World: latest crypto news and digital currency updates ', 'source': 'https://www.cnbc.com/cryptoworld/', 'start_index': 1787, 'description': 'CNBC Crypto World delivers the latest crypto news and daily trading updates featuring expert analysis of major market moves, Bitcoin, Ethereum, XRP, and other top cryptocurrencies. Stay informed on key innovations such as new currencies and the evolution of blockchain technology and digital wallets.'}, {'title': 'Latest Cryptocurrency Market News — TradingView', 'description': 'Follow crypto trends with timely market updates from trusted sources around the world.', 'start_index': 0, 'language': 'en', 'source': 'https://www.tradingview.com/markets/cryptocurrencies/news/', 'embedding_config': "{'engine': '', 'model': 'sentence-transformers/all-MiniLM-L6-v2'}"}, {'description': 'Get the latest cryptocurrency market news, pricing and regulation information to inform your defi investment strategy. From bitcoin to altcoins, Yahoo Finance has you covered.', 'source': 'https://finance.yahoo.com/markets/crypto/', 'start_index': 0, 'embedding_config': "{'engine': '', 'model': 'sentence-transformers/all-MiniLM-L6-v2'}", 'language': 'en-US', 'title': 'Cryptocurrency pricing, market & regulation news - Yahoo Finance'}

2026-04-24 17:43:48.278 | INFO | open_webui.retrieval.utils:query_doc:270 - query_doc:result '6089154e-3d65-4143-80de-7a701bca649f', 'c280aa39-4191-4bfb-bd55-2cbc292c28c4', 'e2d432df-0af2-4615-9eb9-30deb3bc3d4c' {'source': 'https://www.cnbc.com/cryptoworld/', 'start_index': 1787, 'title': 'Crypto World: latest crypto news and digital currency updates ', 'language': 'en', 'embedding_config': "{'engine': '', 'model': 'sentence-transformers/all-MiniLM-L6-v2'}", 'description': 'CNBC Crypto World delivers the latest crypto news and daily trading updates featuring expert analysis of major market moves, Bitcoin, Ethereum, XRP, and other top cryptocurrencies. Stay informed on key innovations such as new currencies and the evolution of blockchain technology and digital wallets.'}, {'source': 'https://www.orbex.com/blog/en/tag/cryptocurrency', 'language': 'en', 'start_index': 2707, 'embedding_config': "{'engine': '', 'model': 'sentence-transformers/all-MiniLM-L6-v2'}", 'title': 'Latest Cryptocurrency News and Analysis

2026-04-24 17:43:48.278 | INFO | open_webui.retrieval.utils:query_doc:270 - query_doc:result 'a164443e-ef57-44a2-aa9c-c1fbceaeb791', '120683f2-5bec-4549-917e-f68c28a8553c', '0f6a4fdf-d833-4673-a539-52fa5bc70d0c' {'embedding_config': "{'engine': '', 'model': 'sentence-transformers/all-MiniLM-L6-v2'}", 'title': 'Cryptocurrency pricing, market & regulation news - Yahoo Finance', 'description': 'Get the latest cryptocurrency market news, pricing and regulation information to inform your defi investment strategy. From bitcoin to altcoins, Yahoo Finance has you covered.', 'source': 'https://finance.yahoo.com/markets/crypto/', 'start_index': 9135, 'language': 'en-US'}, {'description': "Yahoo Finance's complete list of crypto currencies offers up-to-the-minute prices, percentage change, volume, open interest, and daily charts.", 'embedding_config': "{'engine': '', 'model': 'sentence-transformers/all-MiniLM-L6-v2'}", 'source': 'https://finance.yahoo.com/markets/crypto/all/', 'language': 'en-US', 'start_index': 0, 'title': 'Crypto Currencies: prices, changes, trading volume & daily charts - Yahoo Finance'}, {'description': 'Top cryptocurrency prices and charts, listed by market capitalization. Free access to current and historic data for Bitcoin and thousands of altcoins.', 'start_index': 4514, 'embedding_config': "{'engine': '', 'model': 'sentence-transformers/all-MiniLM-L6-v2'}", 'title': 'Cryptocurrency Prices, Charts And Market Capitalizations

Additional Information

No response

Originally created by @llmlearn2025 on GitHub (Apr 24, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/24101 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!). - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version 0.9.1 ### Ollama Version (if applicable) lm studio 4.12 ### Operating System windows with docker ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior user requests with tool calls are expected to generate response even when a model is called using @model inside a chat or a channel ### Actual Behavior @model with tool call fails. general chat produces response, where ever tool call is needed, it fails. ### Steps to Reproduce 1. enable tool call on two models 2. start a fresh chat and generate a result using tool call. 3. use @model_2 to prompt the model 2 to use the tool and generate response 4. the response -<|start|>assistant<|channel|>commentary to=functions.tool_search_news_post<|message|>{"query":"cryptocurrency","time_range":"week"} 5. same model 2 in fresh chat works perfectly with the same tool call.. only when used with in a chat using @ or used inside a channel via @ ### Logs & Screenshots <img width="1545" height="1704" alt="Image" src="https://github.com/user-attachments/assets/8b79a41d-5104-425a-80cd-f762abdeed9b" /> The docker log shows that the tool executed well - 2026-04-24 17:43:48.278 | INFO | open_webui.retrieval.utils:query_doc:270 - query_doc:result [['6089154e-3d65-4143-80de-7a701bca649f', '29e955ff-4e60-4ac1-bbb3-169b3bde596d', 'e2d432df-0af2-4615-9eb9-30deb3bc3d4c']] [[{'language': 'en', 'embedding_config': "{'engine': '', 'model': 'sentence-transformers/all-MiniLM-L6-v2'}", 'title': 'Crypto World: latest crypto news and digital currency updates ', 'source': 'https://www.cnbc.com/cryptoworld/', 'start_index': 1787, 'description': 'CNBC Crypto World delivers the latest crypto news and daily trading updates featuring expert analysis of major market moves, Bitcoin, Ethereum, XRP, and other top cryptocurrencies. Stay informed on key innovations such as new currencies and the evolution of blockchain technology and digital wallets.'}, {'title': 'Latest Cryptocurrency Market News — TradingView', 'description': 'Follow crypto trends with timely market updates from trusted sources around the world.', 'start_index': 0, 'language': 'en', 'source': 'https://www.tradingview.com/markets/cryptocurrencies/news/', 'embedding_config': "{'engine': '', 'model': 'sentence-transformers/all-MiniLM-L6-v2'}"}, {'description': 'Get the latest cryptocurrency market news, pricing and regulation information to inform your defi investment strategy. From bitcoin to altcoins, Yahoo Finance has you covered.', 'source': 'https://finance.yahoo.com/markets/crypto/', 'start_index': 0, 'embedding_config': "{'engine': '', 'model': 'sentence-transformers/all-MiniLM-L6-v2'}", 'language': 'en-US', 'title': 'Cryptocurrency pricing, market & regulation news - Yahoo Finance'}]] 2026-04-24 17:43:48.278 | INFO | open_webui.retrieval.utils:query_doc:270 - query_doc:result [['6089154e-3d65-4143-80de-7a701bca649f', 'c280aa39-4191-4bfb-bd55-2cbc292c28c4', 'e2d432df-0af2-4615-9eb9-30deb3bc3d4c']] [[{'source': 'https://www.cnbc.com/cryptoworld/', 'start_index': 1787, 'title': 'Crypto World: latest crypto news and digital currency updates ', 'language': 'en', 'embedding_config': "{'engine': '', 'model': 'sentence-transformers/all-MiniLM-L6-v2'}", 'description': 'CNBC Crypto World delivers the latest crypto news and daily trading updates featuring expert analysis of major market moves, Bitcoin, Ethereum, XRP, and other top cryptocurrencies. Stay informed on key innovations such as new currencies and the evolution of blockchain technology and digital wallets.'}, {'source': 'https://www.orbex.com/blog/en/tag/cryptocurrency', 'language': 'en', 'start_index': 2707, 'embedding_config': "{'engine': '', 'model': 'sentence-transformers/all-MiniLM-L6-v2'}", 'title': 'Latest Cryptocurrency News and Analysis | Orbex', 'description': 'Stay updated with the latest cryptocurrency news, trends, and expert analysis. Get insights into Bitcoin, Ethereum, and the crypto market to guide your investments.'}, {'language': 'en-US', 'source': 'https://finance.yahoo.com/markets/crypto/', 'description': 'Get the latest cryptocurrency market news, pricing and regulation information to inform your defi investment strategy. From bitcoin to altcoins, Yahoo Finance has you covered.', 'start_index': 0, 'title': 'Cryptocurrency pricing, market & regulation news - Yahoo Finance', 'embedding_config': "{'engine': '', 'model': 'sentence-transformers/all-MiniLM-L6-v2'}"}]] 2026-04-24 17:43:48.278 | INFO | open_webui.retrieval.utils:query_doc:270 - query_doc:result [['a164443e-ef57-44a2-aa9c-c1fbceaeb791', '120683f2-5bec-4549-917e-f68c28a8553c', '0f6a4fdf-d833-4673-a539-52fa5bc70d0c']] [[{'embedding_config': "{'engine': '', 'model': 'sentence-transformers/all-MiniLM-L6-v2'}", 'title': 'Cryptocurrency pricing, market & regulation news - Yahoo Finance', 'description': 'Get the latest cryptocurrency market news, pricing and regulation information to inform your defi investment strategy. From bitcoin to altcoins, Yahoo Finance has you covered.', 'source': 'https://finance.yahoo.com/markets/crypto/', 'start_index': 9135, 'language': 'en-US'}, {'description': "Yahoo Finance's complete list of crypto currencies offers up-to-the-minute prices, percentage change, volume, open interest, and daily charts.", 'embedding_config': "{'engine': '', 'model': 'sentence-transformers/all-MiniLM-L6-v2'}", 'source': 'https://finance.yahoo.com/markets/crypto/all/', 'language': 'en-US', 'start_index': 0, 'title': 'Crypto Currencies: prices, changes, trading volume & daily charts - Yahoo Finance'}, {'description': 'Top cryptocurrency prices and charts, listed by market capitalization. Free access to current and historic data for Bitcoin and thousands of altcoins.', 'start_index': 4514, 'embedding_config': "{'engine': '', 'model': 'sentence-transformers/all-MiniLM-L6-v2'}", 'title': 'Cryptocurrency Prices, Charts And Market Capitalizations | CoinMarketCap', 'source': 'https://coinmarketcap.com/', 'language': 'en'}]] ### Additional Information _No response_
GiteaMirror added the bug label 2026-05-21 02:48:20 -05:00
Author
Owner

@tjbck commented on GitHub (May 8, 2026):

Unable to reproduce.

<!-- gh-comment-id:4409132024 --> @tjbck commented on GitHub (May 8, 2026): Unable to reproduce.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#123495