fix nextchapter bug
This commit is contained in:
@@ -155,7 +155,7 @@ class AgentNamespace(Namespace):
|
||||
if data['type'] == 'function': # 在这里 前端会发送允许执行的function与参数
|
||||
print("function_call", data['data'])
|
||||
d = data['data']
|
||||
res = chatmanager[uuid].function_call(d['data']['name'], d['data']['args'])
|
||||
res = chatmanager[uuid].function_call(d['data']['name'], d['data'].get('args', {}))
|
||||
d['data'] = res.to_dict()
|
||||
print("function_call_res", d['data'])
|
||||
emit(d['route'], d, room=uuid, namespace='/agent')
|
||||
@@ -234,7 +234,6 @@ class AgentNamespace(Namespace):
|
||||
emit('message', res.message, room=uuid, namespace='/agent')
|
||||
|
||||
|
||||
|
||||
def on_disconnect(self,data):
|
||||
ex = current_app.extensions
|
||||
uuid = session.get('user_uuid')
|
||||
|
||||
Reference in New Issue
Block a user