mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
chore: change comment respond to query_respond
This commit is contained in:
parent
3c98fddbe4
commit
1e645ddc6a
1 changed files with 2 additions and 2 deletions
|
|
@ -61,7 +61,7 @@ class OpenCodeInterpreter(object):
|
|||
assert language == 'python', f"Expect python language for default function_format, but got {language}."
|
||||
function_format = """def {function_name}():\n{code}"""
|
||||
# Extract the code module in the open-interpreter respond message.
|
||||
# The respond of open-interpreter before v0.1.4 is:
|
||||
# The query_respond of open-interpreter before v0.1.4 is:
|
||||
# [{'role': 'user', 'content': your query string},
|
||||
# {'role': 'assistant', 'content': plan from llm, 'function_call': {
|
||||
# "name": "run_code", "arguments": "{"language": "python", "code": code of first plan},
|
||||
|
|
@ -73,7 +73,7 @@ class OpenCodeInterpreter(object):
|
|||
and "parsed_arguments" in item["function_call"]
|
||||
and 'language' in item["function_call"]['parsed_arguments']
|
||||
and item["function_call"]['parsed_arguments']['language'] == language]
|
||||
# The respond of open-interpreter v0.1.7 is:
|
||||
# The query_respond of open-interpreter v0.1.7 is:
|
||||
# [{'role': 'user', 'message': your query string},
|
||||
# {'role': 'assistant', 'message': plan from llm, 'language': 'python',
|
||||
# 'code': code of first plan, 'output': output of first plan code},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue