diff --git a/server/agent/prompts/bot_template.py b/server/agent/prompts/bot_template.py index f903a1ad..903130e2 100644 --- a/server/agent/prompts/bot_template.py +++ b/server/agent/prompts/bot_template.py @@ -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. - 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. diff --git a/server/agent/prompts/issue_helper.py b/server/agent/prompts/issue_helper.py index e7a8589a..c7ef95c5 100644 --- a/server/agent/prompts/issue_helper.py +++ b/server/agent/prompts/issue_helper.py @@ -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. - 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. @@ -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. - 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.