Skip to content

VincentHch/vscodex

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
August 29, 2021 15:23
src
August 30, 2021 10:00
August 27, 2021 10:06
August 27, 2021 10:06
August 27, 2021 10:06
August 31, 2021 22:03
August 27, 2021 10:06
August 27, 2021 10:06

VSCodex

Visual Studio Code extension to support the new codex API by OpenAI.

An API key (access token) is required in order to use this extension. This token is issued by OpenAI and must be in an environment variable named OPENAI_API_KEY. You can alternatively specify the API key in the extension settings although this might be less secure, and is generally discouraged.

echo 'export OPENAI_API_KEY=********' >> ~/.bashrc

Building and installing extension

npm install -g vsce
npm install
vsce package
code --install-extension *.vsix

Features

Complete snippet (vscodex.predict)

Shortcut: ctrl+enter

Set level and complete snippet

Shortcut: ctrl+shift+enter

To avoid predicting more code than needed, stop-sequences can be specified like class. A level can be set and modified in the extension.

  • Function-level: will only complete your function
  • Class-level: will only complete your class
  • File-level: No restrictions
  • Custom-level: User specified stop sequence.

About

Visual Studio Code extension to support code prediction with new codex API by OpenAI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published