feat: can show the api call example with chat & function call? #6632

Closed
opened 2025-11-11 17:01:51 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @acer1204 on GitHub (Oct 8, 2025).

Check Existing Issues

  • 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

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_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#6632