mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
feat: can show the api call example with chat & function call? #6632
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 @acer1204 on GitHub (Oct 8, 2025).
Check Existing Issues
Problem Description
I find this open ai page with function calling...
https://platform.openai.com/docs/guides/function-calling
It's look so different with openwebui api example.
curl -X POST http://localhost:3000/api/chat/completions
-H "Authorization: Bearer YOUR_API_KEY"
-H "Content-Type: application/json"
-d '{
"model": "llama3.1",
"messages": [
{
"role": "user",
"content": "Why is the sky blue?"
}
]
}'
my function calling tool is add in openwebui like list.
http://192.168.1.164:54321/docs
http://192.168.1.164:54321/openai.json
it's working with use open webui to create workspace with select tools.
but if want to use api to call.
it's not call my function calling... just chat?
how to edit this example that it can support my function calling tool?
Desired Solution you'd like
get the exaple with use openwebui api to chat with my function calling tool.
Alternatives Considered
no
Additional Context
No response