Models with attached functions and tools cause error #2474

Closed
opened 2025-11-11 15:08:09 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @pipars on GitHub (Oct 26, 2024).

Bug Report

Installation Method

docker

Environment

  • Open WebUI Version: 0.3.34

  • Ollama (if applicable): 0.3.13

  • Operating System: Ubuntu 24.04

  • Browser (if applicable): Chrome 130.0.6723.70

Confirmation:

  • [X ] I have read and followed all the instructions provided in the README.md.
  • I am on 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 the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

Model responds to the prompt

Actual Behavior:

Error message is shown

Description

After upgrading to 0.3.34 - Initiating a chat with any model with any fuction (filters) ot tool attached - causes error:
Uh-oh! There was an issue connecting to XXX.
No module named 'xxx'

Subsequently, the functions that are "attahed" to the model are being disabled. The

Reproduction Details

Steps to Reproduce:
Ask the model a simple question: like... "are you there?"

Logs and Screenshots

(sensitive information replaced with zzz)

Browser Console Logs:

submitPrompt are you there?
UserMessage.svelte:85 UserMessage mounted
ResponseMessage.svelte:453 ResponseMessage mounted
Chat.svelte:963 modelId zzz
index.ts:279
POST https://chat.zzz.com/api/chat/completions 400 (Bad Request)
window.fetch @ fetcher.js:76
w @ index.ts:279
bt @ Chat.svelte:1498
await in bt
(anonymous) @ Chat.svelte:1020
await in (anonymous)
pt @ Chat.svelte:962
await in pt
me @ Chat.svelte:896
await in me
tl @ Chat.svelte:2282
await in tl
(anonymous) @ lifecycle.js:105
(anonymous) @ lifecycle.js:104
zt @ MessageInput.svelte:532
(anonymous) @ lifecycle.js:105
(anonymous) @ lifecycle.js:104
Enter @ RichTextInput.svelte:321
(anonymous) @ index.js:99
(anonymous) @ index.js:3132
someProp @ index.js:5490
ce.keydown @ index.js:3132
t.dom.addEventListener.t.input.eventHandlers. @ index.js:3052
Show 10 more frames
Show lessUnderstand this errorAI
Chat.svelte:1762 {detail: "No module named 'zzz'"}
pe @ Chat.svelte:1762
await in pe
bt @ Chat.svelte:1692
await in bt
(anonymous) @ Chat.svelte:1020
await in (anonymous)
pt @ Chat.svelte:962
await in pt
me @ Chat.svelte:896
await in me
tl @ Chat.svelte:2282
await in tl
(anonymous) @ lifecycle.js:105
(anonymous) @ lifecycle.js:104
zt @ MessageInput.svelte:532
(anonymous) @ lifecycle.js:105
(anonymous) @ lifecycle.js:104
Enter @ RichTextInput.svelte:321
(anonymous) @ index.js:99
(anonymous) @ index.js:3132
someProp @ index.js:5490
ce.keydown @ index.js:3132
t.dom.addEventListener.t.input.eventHandlers. @ index.js:3052
Show 9 more frames
Show lessUnderstand this errorAI
+layout.svelte:82 usage {models: Array(1)}

Docker Container Logs:
INFO: 3.145.220.246:13534 - "POST /api/v1/chats/new HTTP/1.1" 200 OK
INFO: 3.145.222.43:39754 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
Error loading module: corporate_position: No module named 'neo4j'
INFO: 3.21.87.174:16320 - "POST /api/chat/completions HTTP/1.1" 400 Bad Request
INFO: 3.145.223.226:35288 - "POST /api/v1/chats/bb09ed7d-b759-4ff1-af30-30689c444e65 HTTP/1.1" 200 OK
INFO: 3.145.223.164:25400 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
INFO: 3.21.86.93:20174 - "POST /api/chat/completed HTTP/1.1" 200 OK
INFO: 3.145.221.86:45044 - "POST /api/v1/chats/bb09ed7d-b759-4ff1-af30-30689c444e65 HTTP/1.1" 200 OK
INFO: 3.145.222.43:39754 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK
generate_title
gpt-4o-mini

Additional Information

Removing or disabling functions resolves the error

Originally created by @pipars on GitHub (Oct 26, 2024). # Bug Report ## Installation Method docker ## Environment - **Open WebUI Version:** 0.3.34 - **Ollama (if applicable):** 0.3.13 - **Operating System:** Ubuntu 24.04 - **Browser (if applicable):** Chrome 130.0.6723.70 **Confirmation:** - [X ] I have read and followed all the instructions provided in the README.md. - [X] I am on 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 the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: Model responds to the prompt ## Actual Behavior: Error message is shown ## Description After upgrading to 0.3.34 - Initiating a chat with any model with any fuction (filters) ot tool attached - causes error: Uh-oh! There was an issue connecting to XXX. No module named 'xxx' Subsequently, the functions that are "attahed" to the model are being disabled. The ## Reproduction Details **Steps to Reproduce:** Ask the model a simple question: like... "are you there?" ## Logs and Screenshots (sensitive information replaced with zzz) **Browser Console Logs:** submitPrompt are you there? UserMessage.svelte:85 UserMessage mounted ResponseMessage.svelte:453 ResponseMessage mounted Chat.svelte:963 modelId zzz index.ts:279 POST https://chat.zzz.com/api/chat/completions 400 (Bad Request) window.fetch @ fetcher.js:76 w @ index.ts:279 bt @ Chat.svelte:1498 await in bt (anonymous) @ Chat.svelte:1020 await in (anonymous) pt @ Chat.svelte:962 await in pt me @ Chat.svelte:896 await in me tl @ Chat.svelte:2282 await in tl (anonymous) @ lifecycle.js:105 (anonymous) @ lifecycle.js:104 zt @ MessageInput.svelte:532 (anonymous) @ lifecycle.js:105 (anonymous) @ lifecycle.js:104 Enter @ RichTextInput.svelte:321 (anonymous) @ index.js:99 (anonymous) @ index.js:3132 someProp @ index.js:5490 ce.keydown @ index.js:3132 t.dom.addEventListener.t.input.eventHandlers.<computed> @ index.js:3052 Show 10 more frames Show lessUnderstand this errorAI Chat.svelte:1762 {detail: "No module named 'zzz'"} pe @ Chat.svelte:1762 await in pe bt @ Chat.svelte:1692 await in bt (anonymous) @ Chat.svelte:1020 await in (anonymous) pt @ Chat.svelte:962 await in pt me @ Chat.svelte:896 await in me tl @ Chat.svelte:2282 await in tl (anonymous) @ lifecycle.js:105 (anonymous) @ lifecycle.js:104 zt @ MessageInput.svelte:532 (anonymous) @ lifecycle.js:105 (anonymous) @ lifecycle.js:104 Enter @ RichTextInput.svelte:321 (anonymous) @ index.js:99 (anonymous) @ index.js:3132 someProp @ index.js:5490 ce.keydown @ index.js:3132 t.dom.addEventListener.t.input.eventHandlers.<computed> @ index.js:3052 Show 9 more frames Show lessUnderstand this errorAI +layout.svelte:82 usage {models: Array(1)} **Docker Container Logs:** INFO: 3.145.220.246:13534 - "POST /api/v1/chats/new HTTP/1.1" 200 OK INFO: 3.145.222.43:39754 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK Error loading module: corporate_position: No module named 'neo4j' INFO: 3.21.87.174:16320 - "POST /api/chat/completions HTTP/1.1" 400 Bad Request INFO: 3.145.223.226:35288 - "POST /api/v1/chats/bb09ed7d-b759-4ff1-af30-30689c444e65 HTTP/1.1" 200 OK INFO: 3.145.223.164:25400 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK INFO: 3.21.86.93:20174 - "POST /api/chat/completed HTTP/1.1" 200 OK INFO: 3.145.221.86:45044 - "POST /api/v1/chats/bb09ed7d-b759-4ff1-af30-30689c444e65 HTTP/1.1" 200 OK INFO: 3.145.222.43:39754 - "GET /api/v1/chats/?page=1 HTTP/1.1" 200 OK generate_title gpt-4o-mini ## Additional Information Removing or disabling functions resolves the error
Author
Owner

@pipars commented on GitHub (Oct 26, 2024):

The issue was caused by not having "pass" operator after the valves class within the function or tool.

@pipars commented on GitHub (Oct 26, 2024): The issue was caused by not having "pass" operator after the valves class within the function or tool.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#2474