We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6203282 commit 57db845Copy full SHA for 57db845
llms/main.py
@@ -1052,8 +1052,11 @@ def gen_summary(self, gen):
1052
def chat_summary(self, chat):
1053
return chat_summary(chat)
1054
1055
- def process_chat(self, chat, provider_id=None):
1056
- return process_chat(chat, provider_id)
+ async def process_chat(self, chat, provider_id=None):
+ # remove tools from chat
1057
+ clone = json.loads(json.dumps(chat))
1058
+ clone.pop("tools", None)
1059
+ return await process_chat(clone, provider_id)
1060
1061
async def response_json(self, response):
1062
return await response_json(response)
0 commit comments