[GH-ISSUE #1484] feat: Provide extra_body option to pass extra parameters to OpenAI API proxy #12517

Closed
opened 2026-04-19 19:26:40 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @rudeigerc on GitHub (Apr 10, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/1484

Is your feature request related to a problem? Please describe.

We use open-webui as the frontend of multiple OpenAI API capable backends (e.g. vllm/fastchat) without ollama thanks to the high extensibility of this project. However, we encountered a problem that some of out-of-scope extra parameters provided by inference backends such as vllm cannot be passed due to the lack of support.

For example, OpenAI Python SDK provides an extra_body paramter for users to additional JSON properties to the request.

Describe the solution you'd like

Provide extra_body as a configurable option at frontend, so that it can be passed to the proxied API.

Describe alternatives you've considered

N/A

Additional context

N/A

Originally created by @rudeigerc on GitHub (Apr 10, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/1484 **Is your feature request related to a problem? Please describe.** We use `open-webui` as the frontend of multiple OpenAI API capable backends (e.g. vllm/fastchat) without ollama thanks to the high extensibility of this project. However, we encountered a problem that some of out-of-scope extra parameters provided by inference backends such as [vllm](https://docs.vllm.ai/en/latest/serving/openai_compatible_server.html#extra-parameters-for-chat-api) cannot be passed due to the lack of support. For example, OpenAI Python SDK provides an `extra_body` paramter for users to additional JSON properties to the request. **Describe the solution you'd like** Provide `extra_body` as a configurable option at frontend, so that it can be passed to the proxied API. **Describe alternatives you've considered** N/A **Additional context** N/A
Author
Owner

@esceptico commented on GitHub (Sep 11, 2024):

Second that!
Are there any updates on this?

<!-- gh-comment-id:2344577684 --> @esceptico commented on GitHub (Sep 11, 2024): Second that! Are there any updates on this?
Author
Owner

@tjbck commented on GitHub (Sep 21, 2024):

This is currently supported using Functions, Here's an example of OpenAI Pipe Function: https://openwebui.com/f/hub/openai_manifold

With slight modification to this Function, you should be able to achieve what you've outlined here.

<!-- gh-comment-id:2365308148 --> @tjbck commented on GitHub (Sep 21, 2024): This is currently supported using Functions, Here's an example of OpenAI Pipe Function: https://openwebui.com/f/hub/openai_manifold With slight modification to this Function, you should be able to achieve what you've outlined here.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#12517