diff --git a/wwwroot/api/agent_chat.dspy b/wwwroot/api/agent_chat.dspy index 1333e06..9559a5f 100644 --- a/wwwroot/api/agent_chat.dspy +++ b/wwwroot/api/agent_chat.dspy @@ -79,7 +79,8 @@ if action == 'send_message': gateway = get_gateway() async def agent_stream(): - async for chunk in gateway.run_message("web", uid, prompt): + _base = entire_url("/") + async for chunk in gateway.run_message("web", uid, prompt, base_url=_base): data = json.loads(chunk) t = data.get('type', '')