fix: agent_chat 传 base_url 给 gateway(/task 弹窗 url 完整化)
This commit is contained in:
parent
195551261f
commit
65f547c400
@ -79,7 +79,8 @@ if action == 'send_message':
|
|||||||
gateway = get_gateway()
|
gateway = get_gateway()
|
||||||
|
|
||||||
async def agent_stream():
|
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)
|
data = json.loads(chunk)
|
||||||
t = data.get('type', '')
|
t = data.get('type', '')
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user