mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
pre-commit
This commit is contained in:
parent
00afcb7307
commit
1f21f6dd54
1 changed files with 3 additions and 1 deletions
|
|
@ -162,7 +162,9 @@ class ArchBaseHandler:
|
|||
# "content": "<tool_response>\n{'name': 'get_stock_price', 'result': '$196.66'}\n</tool_response>"
|
||||
# msg[idx-1] contains tool call = '{"tool_calls": [{"name": "currency_exchange", "arguments": {"currency_symbol": "NZD"}}]}'
|
||||
tool_call_msg = messages[idx - 1].content
|
||||
if tool_call_msg.startswith("```") and tool_call_msg.endswith("```"):
|
||||
if tool_call_msg.startswith("```") and tool_call_msg.endswith(
|
||||
"```"
|
||||
):
|
||||
tool_call_msg = tool_call_msg.strip("```").strip()
|
||||
if tool_call_msg.startswith("json"):
|
||||
tool_call_msg = tool_call_msg[4:].strip()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue