Skip to content

Commit

Permalink
Merge pull request #73 from Liqs-v2/main
Browse files Browse the repository at this point in the history
UPDATE: Fix typos in prompt and logs
  • Loading branch information
Marti2203 authored Oct 30, 2024
2 parents 0a5c907 + 1451448 commit d171305
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/api/agent_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from app.utils import parse_function_invocation

PROXY_PROMPT = """
You are a helpful assistant that retreive API calls and bug locations from a text into json format.
You are a helpful assistant that retrieve API calls and bug locations from a text into json format.
The text will consist of two parts:
1. do we need more context?
2. where are bug locations?
Expand All @@ -39,7 +39,7 @@
"bug_locations":[{"file": "path/to/file", "class": "class_name", "method": "method_name"}, {"file": "path/to/file", "class": "class_name", "method": "method_name"} ... ]
}
NOTE: a bug location should at least has a "class" or "method".
NOTE: a bug location should at least have a "class" or "method".
"""


Expand Down
2 changes: 1 addition & 1 deletion app/api/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,5 +484,5 @@ def proxy_apis(self, text: str) -> tuple[str | None, str, list[MessageThread]]:
if tool_output is None:
summary = "The tool returned nothing. The main agent probably did not provide enough clues."
else:
summary = "The tool returned the selected search APIs in json format generaetd by another agent."
summary = "The tool returned the selected search APIs in json format generated by another agent."
return tool_output, summary, new_thread
2 changes: 1 addition & 1 deletion app/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def start_conversation_round_stratified(
proxy_log.write_text(json.dumps(proxy_messages, indent=4))

if selected_apis is None:
msg = "The search API calls seem not valid. Please check the arguments you give carefully and try again."
msg = "The search API calls seem invalid. Please check the arguments you give carefully and try again."
msg_thread.add_user(msg)
print_acr(
msg,
Expand Down

0 comments on commit d171305

Please sign in to comment.