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
Originally created by @acer1204 on GitHub (Oct 8, 2025).
### Check Existing Issues
- [x] I have searched the existing issues and discussions.
### 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_
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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