infinite-ai-array icon indicating copy to clipboard operation
infinite-ai-array copied to clipboard

Automagic unit tests! (support function arguments, and refactor)

Open alexanderatallah opened this issue 2 years ago • 2 comments

Apologies for batching a few changes together, but the gist of the motivation is available in the README:

  1. Needed a way of accepting function arguments to the magic functions
  2. Improved the prompt generation by adding argument names for functions, classes
  3. I noticed that some OpenAI completions only ended in two backticks - fixed that, but not sure how safe it is.
  4. It's fun being able to run multiple tests at once, all from OpenAI - refactored the code and added an environment variable to allow that

alexanderatallah avatar Jan 05 '23 21:01 alexanderatallah