open-webui/backend/open_webui
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
..
data refac: mv backend files to /open_webui dir 2024-09-04 16:54:48 +02:00
internal refac 2026-03-17 17:58:01 -05:00
migrations refac 2026-04-01 18:26:46 -05:00
models refac 2026-04-02 22:34:51 -05:00
retrieval refac 2026-03-26 19:01:33 -05:00
routers feat: add /v1/responses proxy endpoint for Ollama (#23483) 2026-04-08 13:15:21 -07:00
socket refac 2026-04-01 07:42:11 -05:00
static refac 2026-03-23 23:39:52 -05:00
storage refac 2026-03-17 17:58:01 -05:00
test refac 2026-03-17 17:58:01 -05:00
tools fix: use admin-configured WEB_SEARCH_RESULT_COUNT as default (#23488) 2026-04-08 13:13:44 -07:00
utils fix: add SSRF protection to OAuth profile picture URL fetching (#23356) 2026-04-08 13:10:35 -07:00
__init__.py refac (#22987) 2026-03-24 15:41:26 -05:00
alembic.ini fix: Alembic CLI commands from failing 2025-08-15 04:17:47 -04:00
config.py feat: mistral tts 2026-04-02 19:31:15 -05:00
constants.py refac 2026-03-25 17:29:57 -05:00
env.py feat: oauth backchannel logout 2026-04-02 08:46:34 -05:00
functions.py refac 2026-03-17 17:58:01 -05:00
main.py feat: mistral tts 2026-04-02 19:31:15 -05:00
tasks.py refac 2026-03-17 17:58:01 -05:00