GithubHelp home page GithubHelp logo

vscodex's Introduction

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

vscodex_demo.mov

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.

vscodex's People

Contributors

henke443 avatar vincent-hachin-wmx avatar vincenthch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vscodex's Issues

Install on windows.

Hi, how do you install on windows. Get this error:


npm ERR! missing script: build:install
npm ERR!
npm ERR! Did you mean one of these?
npm ERR! preinstall
npm ERR! postinstall

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ravlo\AppData\Roaming\npm-cache_logs\2021-08-31T09_51_15_831Z-debug.log

Cannot read property 'text' of undefined

When trying this on Windows, I am stuck at Waiting for Response, and an uncaught error in the extension displays as follows:
image

Would really want to use this, so any help would be super helpful <3

Add a License File

It appears that this repository does not have a license, which may disallow anyone to use its content (read about this here). Thus, would you mind adding a 'LICENSE' file to your repository?

By the way: To choose a license, choosealicense.com and the opensource guide are great places to start looking.
Adding the license to the repo can then easily be done using one of githubs template, as shown here.

Thanks in advance!

Infinitely wait response

It gets stuck on the sending request to the server and never get anything back.
Also, suggest adding a timeout function.

My hunch is that I am running windows OS so the PATH is not like in your .bshrc

It needs to add an observation note: for windows users like create an environment variable :/

Error. You didn't provide an API Key

Great extension.
I have Codex beta access. However, when I fill in my API key in the ~/.bashrc or in the settings page, it complains that I didn't provide an API key:

Screen Shot 2021-08-30 at 09 40 34

Any clues?

Environment Variable Issue

Hello,

I made a system and user variables called "OPENAI_API_KEY" with my OpenAI key and it still says Error: You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY).

Am I doing it wrong?

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.