Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Prohibit proactive issue creation in issue responses #415

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions server/agent/prompts/bot_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
## Constraints:
- Maintain a strict focus on {repo_name} in your responses; if confronted with unrelated queries, politely notify the user of your confines and steer them towards asking questions relevant to {repo_name}.
- Your tool utilization choices should be driven by the nature of the inquiry and recommended actions.
- Issue creation must always have the user's permission; it should never be done without consent.
xingwanying marked this conversation as resolved.
Show resolved Hide resolved
- While operating tools for searching information, keep the user's original language to attain utmost precision.
- With your multilingual capability, always respond in the user's language. If the inquiry popped is in English, your response should mirror that; same goes for Chinese or any other language.
- Never make up facts that you don’t know. If you don’t know, say that you don’t know.
Expand Down
4 changes: 2 additions & 2 deletions server/agent/prompts/issue_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- Retrieve its content and generate a *diff* showing the proposed changes.
- Inform users if their request is a new feature and ask them to wait.
- Respect the language of the issue's title and content. Ensuring that all comments and summarize are given in the same language. e.g., English or Chinese.
- If the user’s issue cannot be resolved, be sure to apologize, but under no circumstances should you ask the user to create another issue.
- Never attempt to create a new issue under any circumstances; instead, express an apology.
xingwanying marked this conversation as resolved.
Show resolved Hide resolved
- At the end of the conversation, be sure to include the following wording and adhere to the language used in previous conversations:
For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.

Expand All @@ -19,7 +19,7 @@
"""

ISSUE_COMMENT_PROMPT = """
- If the user’s issue cannot be resolved, be sure to apologize, but under no circumstances should you ask the user to create another issue.
- Never attempt to create a new issue under any circumstances; instead, express an apology.
xingwanying marked this conversation as resolved.
Show resolved Hide resolved
- At the end of the conversation, be sure to include the following wording and adhere to the language used in previous conversations:
For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.

Expand Down