GithubHelp home page GithubHelp logo

thefatpanda97 / loop Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 9.64 MB

VSCode extension that utilizes OpenAI to support test driven code generation

Home Page: https://marketplace.visualstudio.com/items?itemName=thefatpanda97.loop

License: MIT License

TypeScript 100.00%

loop's Introduction

loop logo

OpenAI GPT Powered Test Driven Development. Give Me Tests, I'll Give You Code.

Motivation

With the introduction of ChatGPT, one interesting feature it provides is that it can generate code! However, given a prompt for the desired code, the response is often kinda wonky. So, rather than giving it a prompt, why not give it a test? This is the idea behind loop, a VS Code extension that supports test-driven development by generating code that passes given tests.

Usage

Full Test Suite

full test suite

Partial Test Suite

partial test suite

Configuring the extension

There are 2 settings that can be used to configure the extension. Notably, you MUST supply your own OpenAI API key. You can see how to generate one here. I would love to be able to provide a key for everyone to use, but unfortunately, I am poor ๐Ÿ˜…

"loop": {
  "loop.openaiApiKey": "REQUIRED: enter you OpenAI API key here",
  "loop.model": "by default it's gpt-3.5-turbo, but you can select gpt-4 if you are enrolled in their beta",
}

loop's People

Contributors

thefatpanda97 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.