open-webui/backend/open_webui
Classic298 e8499ccdd1
fix: pass chat_id to internal task calls for consistent function context (#20585)
Ensure chat_id is reliably passed to function pipelines/manifolds during internal task invocations (web search query generation, RAG query generation, image prompt generation).

This allows stateful functions to maintain per-chat state without fragmentation, as they will now receive a consistent chat_id for all chat-scoped invocations including internal tasks.

Backend changes:
- Pass chat_id in generate_queries call for web search
- Pass chat_id in generate_queries call for RAG/retrieval
- Pass chat_id in generate_image_prompt call

Frontend changes:
- Add optional chat_id parameter to generateQueries API function
- Add optional chat_id parameter to generateAutoCompletion API function

Fixes #20563
2026-02-12 15:36:42 -06:00
..
data refac: mv backend files to /open_webui dir 2024-09-04 16:54:48 +02:00
internal chore: format 2026-02-11 16:24:11 -06:00
migrations chore: format 2026-02-11 16:24:11 -06:00
models refac 2026-02-11 16:45:47 -06:00
retrieval chore: format 2026-02-11 16:24:11 -06:00
routers refac 2026-02-12 15:25:24 -06:00
socket chore: format 2026-02-11 16:24:11 -06:00
static refac 2025-08-10 00:02:58 +04:00
storage chore: format 2026-02-11 16:24:11 -06:00
test rm: outdated tests 2025-12-28 23:35:09 +04:00
tools chore: format 2026-02-11 16:24:11 -06:00
utils fix: pass chat_id to internal task calls for consistent function context (#20585) 2026-02-12 15:36:42 -06:00
__init__.py Update __init__.py 2025-04-15 09:55:35 +02:00
alembic.ini fix: Alembic CLI commands from failing 2025-08-15 04:17:47 -04:00
config.py chore: format 2026-02-11 16:24:11 -06:00
constants.py feat/enh: optional password validation 2025-11-20 17:44:49 -05:00
env.py refac 2026-02-12 15:25:24 -06:00
functions.py chore: format 2026-02-11 16:24:11 -06:00
main.py fix: prevent worker death during document upload by using run_coroutine_threadsafe (#21158) 2026-02-12 15:22:57 -06:00
tasks.py refac 2026-02-12 15:29:34 -06:00