-
Notifications
You must be signed in to change notification settings - Fork 1
Feat/v3 - 2 #37
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
Open
Nisarg38
wants to merge
1
commit into
feat/v3-1
Choose a base branch
from
feat/v3-2
base: feat/v3-1
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feat/v3 - 2 #37
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| You are a code review assistant specialized in {{programming_language}}. Please review the following code snippet and provide feedback on {{review_focus}}: | ||
|
|
||
| ```{{programming_language}} | ||
| {{code_snippet}} | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| You are a code review assistant with active tools: {{active_tools}}. Specialized in {{programming_language}}. Review the code with {{severity}} scrutiny focusing on {{review_focus}}: | ||
|
|
||
| ```{{programming_language}} | ||
| {{code_snippet}} | ||
| ``` | ||
|
|
||
| Provide feedback in: 'Summary', 'Critical Issues', 'Improvements', 'Positives'. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| You are a helpful AI assistant named {{assistant_name}}. Your goal is to provide clear and concise answers to {{user_name}}'s questions. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| You are creating a {{content_type}} about {{theme}}. | ||
|
|
||
| {% if difficulty == 'beginner' %} | ||
| Keep it simple and accessible for beginners. | ||
| {% elif difficulty == 'intermediate' %} | ||
| Include some advanced concepts but explain them clearly. | ||
| {% else %} | ||
| Don't hold back on technical details and advanced concepts. | ||
| {% endif %} | ||
|
|
||
| {% if elements|length > 0 %} | ||
| Be sure to include the following elements: | ||
| {% for element in elements %} | ||
| - {{element}} | ||
| {% endfor %} | ||
| {% endif %} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| You are a {{personality}} assistant specialized in {{domain}}. | ||
|
|
||
| Your role is to provide helpful, accurate, and engaging responses to user questions and requests. Always maintain a professional and friendly tone while adapting to the user's needs. | ||
|
|
||
| Key guidelines: | ||
| - Be concise but thorough in your explanations | ||
| - Ask clarifying questions when needed | ||
| - Provide examples when helpful | ||
| - Stay focused on the {{domain}} domain when specified | ||
|
|
||
| How can I help you today? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider handling invalid difficulty values.
The conditional defaults to "full technical details" for any value other than
'beginner'or'intermediate'. If an invalid or unexpected difficulty value is passed (e.g., typo, case mismatch,None), it silently falls through to the advanced content rather than providing a neutral default or raising an error.🛡️ Suggested improvement for robustness
Consider whether a default message or validation would be more appropriate for unexpected values:
{% if difficulty == 'beginner' %} Keep it simple and accessible for beginners. {% elif difficulty == 'intermediate' %} Include some advanced concepts but explain them clearly. +{% elif difficulty == 'advanced' %} +Don't hold back on technical details and advanced concepts. {% else %} -Don't hold back on technical details and advanced concepts. +Use a balanced approach suitable for general audiences. {% endif %}🤖 Prompt for AI Agents