mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #11792] issue: System Prompt Does Not Trigger Function Calls (Function Calling Issue) #16359
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 @rifkisarici on GitHub (Mar 17, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/11792
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.5.20
Ollama Version (if applicable)
No response
Operating System
Windows 11
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When the system prompt contains the instruction:
The model must call the "check_system_status()" function when the user requests it.Then the model should:
"check_system_status"in the user message.check_system_status()and return its output.[SYSTEM PROMPT TEST] System status: ActiveInstead of just:
[SYSTEM PROMPT TEST] check_system_status()Actual Behavior
[SYSTEM PROMPT TEST] check_system_status(), but does not actually executecheck_system_status().-outlet()usingif "check_system_status" in user_message:.Steps to Reproduce
The model must call the
check_system_status()function when the user requests it.check_system_status[SYSTEM PROMPT TEST] check_system_status()check_system_status()is never actually executed.outlet()like this works:Logs & Screenshots
📌 Code Example
To better illustrate the problem, here is the full code:
Relevant Logs:
Additional Information
[SYSTEM PROMPT TEST]at the beginning).outlet().