feat: implement custom endpoint fetching for model lists and update streaming handler

This commit is contained in:
Dhaval
2026-04-02 12:02:49 +05:30
committed by Nathan Esquenazi
parent fb916d1f7e
commit cbf82898cb
3 changed files with 119 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ def _sse(handler, event, data):
handler.wfile.flush()
def _run_agent_streaming(session_id, msg_text, model, workspace, stream_id, attachments=None):
def _run_agent_streaming(session_id, msg_text, model, workspace, stream_id, attachments=None, base_url=None, provider=None):
"""Run agent in background thread, writing SSE events to STREAMS[stream_id]."""
q = STREAMS.get(stream_id)
if q is None: