Skip to content

Commit

Permalink
improve preaudit instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoWorms authored Nov 24, 2023
1 parent d66a1f1 commit 5ebe2ee
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ def preaudit(update: Update, context: CallbackContext) -> None:
code_content = response.text

prompt = '''
/- Match the natspec documentation made for each function in the code above with its code, for each function list the differences if they don't match perfectly. Make it a list with function signatures and assessments for parts that do not match. You can NEVER say that code is too long to make a review, you have more context size than the source code to craft your answer so you are allowed to make big analysis.
/- Match the natspec documentation made for each function in the code above with its code, for each function list the differences if they don't match perfectly.
/- Make it a list with function signatures and assessments for parts that do not match.
/- You can NEVER say that code is too long to make a review, you have more context size than the source code to craft your answer so you are allowed to make big analysis.
/- For large codebases it's ok to analyze only the most important functions (normally the external ones).
'''
messages = [
{
Expand Down Expand Up @@ -238,4 +241,4 @@ def main() -> None:
updater.idle()

if __name__ == '__main__':
main()
main()

0 comments on commit 5ebe2ee

Please sign in to comment.