fix: resolve path inconsistency between code_run and file_read
This commit is contained in:
@@ -51,7 +51,7 @@ def agent_runner_loop(client, system_prompt, user_input, handler, tools_schema,
|
||||
if '</summary>```' in response.content: response.content = response.content.replace('</summary>```', '</summary> \n```')
|
||||
showcontent = response.content
|
||||
if '</file_content>' in showcontent:
|
||||
showcontent = re.sub(r'<file_content>\s*(.*?)\s*</file_content>', r'\n```` <file_content>\n\1\n</file_content> ````', showcontent, flags=re.DOTALL)
|
||||
showcontent = re.sub(r'<file_content>\s*(.*?)\s*</file_content>', r'\n````\n<file_content>\n\1\n</file_content>\n````', showcontent, flags=re.DOTALL)
|
||||
yield showcontent + '\n\n'
|
||||
|
||||
if not response.tool_calls:
|
||||
|
||||
Reference in New Issue
Block a user