open-webui/backend/open_webui/routers
Classic298 fcedeb9034
feat: add /v1/responses proxy endpoint for Ollama (#23483)
Ollama recently added Responses API support via its OpenAI-compatible
endpoint (/v1/responses). This adds a proxy endpoint to the Ollama
router that forwards requests to Ollama's /v1/responses, applying
the same model resolution, access control, and prefix_id handling
used by the existing /v1/chat/completions and /v1/messages proxies.

Uses a typed ResponsesForm Pydantic model with required model field
and extra='allow' for forward compatibility, consistent with other
endpoint schemas in the file.

This allows API consumers (Codex, Claude Code, etc.) to use the
Responses API directly with Ollama-hosted models without requiring
a separate OpenAI-compatible connection.
2026-04-08 13:15:21 -07:00
..
analytics.py refac 2026-03-17 17:58:01 -05:00
audio.py feat: mistral tts 2026-04-02 19:31:15 -05:00
auths.py refactor: streamline logging and permission checks in auths.py (#22960) 2026-03-25 16:34:45 -05:00
automations.py chore: format 2026-04-01 04:36:02 -05:00
channels.py refac 2026-04-02 02:05:35 -05:00
chats.py refac 2026-04-01 05:55:48 -05:00
configs.py refac 2026-03-26 18:17:49 -05:00
evaluations.py chore: format 2026-04-02 08:11:06 -05:00
files.py refac 2026-04-02 17:58:11 -05:00
folders.py refac 2026-03-17 17:58:01 -05:00
functions.py refac 2026-03-24 04:49:48 -05:00
groups.py refac 2026-03-17 17:58:01 -05:00
images.py refac 2026-03-24 04:49:48 -05:00
knowledge.py chore: format 2026-03-24 06:07:20 -05:00
memories.py refac 2026-03-24 04:49:48 -05:00
models.py refac 2026-04-02 22:34:51 -05:00
notes.py refac 2026-04-02 02:06:21 -05:00
ollama.py feat: add /v1/responses proxy endpoint for Ollama (#23483) 2026-04-08 13:15:21 -07:00
openai.py feat: support Azure v1 endpoint format (/openai/v1) (#23484) 2026-04-08 13:14:46 -07:00
pipelines.py refac 2026-03-24 04:49:48 -05:00
prompts.py refac 2026-04-02 02:06:21 -05:00
retrieval.py refac 2026-04-01 05:52:03 -05:00
scim.py refac 2026-03-24 18:05:19 -05:00
skills.py refac 2026-03-17 17:58:01 -05:00
tasks.py refac 2026-03-17 17:58:01 -05:00
terminals.py refac 2026-03-29 21:01:10 -05:00
tools.py refac 2026-04-02 02:06:21 -05:00
users.py refac 2026-04-01 01:21:21 -05:00
utils.py refac 2026-03-26 19:01:33 -05:00