0.0.1-alpha.3 โ€ข Published 1 year ago

spectorai v0.0.1-alpha.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Spector AI

Spector AI

Description made with GPT 3.5

Discover the power of Spector AI! ๐Ÿ”ฎ An awesome tool to generate tests, documentation and code explanations in any programming language ๐Ÿคฏ It's magical! Simply install Node.js, create an Open AI account, and add your environment variables. And ready! ๐Ÿš€

Features

  • ๐Ÿ”ญ Compatible with any programming language.
  • ๐Ÿงช Test generation.
  • ๐Ÿ“™ Documentation generation.
  • ๐Ÿงฎ Generation of functions.
  • ๐Ÿ—’๏ธ Code explanation.
  • โšก Easy to configure and integrate.
  • ๐Ÿ›ก๏ธ Written in Typescript.
  • ๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป Community driven.

Requirements

Installation

npm install spectorai -g

Setup

Before using the tool it is necessary to add environment variables.

Linux or Mac

export OPENAI_API_KEY=

Windows

set OPENAI_API_KEY=

Getting Started

Once the above steps are completed run the following command:

spectorai

You will be shown a screen like this:

Spector AI CLI

Don't worry if you don't see the same options, we're working on it.

Now select the option you want to use and continue to fill in the information.

Custom environment variables

Spector AI is ready to adapt to your needs in case the default settings are not sufficient. The following environment variables are available:

Linux & Mac

export OPENAI_API_KEY=

export OPENAI_MIN_TOKENS=

Windows

set OPENAI_API_KEY=

set OPENAI_MIN_TOKENS=

Supported programming languages

Spector AI currently supports most programming languages. How is this possible? The question is that Spector AI extracts the extension of the file on which we want to perform a certain task. Either to generate tests, documentation or code explanations.

Limitations

Because the GPT 3.5 model supports a maximum of 4,096 tokens (includes prompt + output), it is possible that your tasks (test creation, documentation, etc) will not be fully completed due to this limitation. That's why we're looking forward to GPT 4. ๐Ÿ˜ƒ