Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>OpenAI Codex IntegrationNew to Visual Studio Code? Get it now.

OpenAI Codex Integration

Johannes Voderholzer

|
320 installs
| (0) | Free
An integration of the codex model by openai into VSCode
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

codex-model-integration README

This extension implements a simple integration for the openai codex model. Please make sure you have set your api-key from openai correctly in your environment variables! You might need to restart VSCode after setting the key! See https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety for more instructions on how to set the key.

Features

To generate text from codex, first select some text or place the cursor. Then click on the little robot icon on the left sidebar and click on the "chatbot" or "continue writing" button. The "chatbot" button uses a simple preprompt that allows for better question answering. The "continue writing" button will just call the raw model on the selected text. You can also define a custom preprompt. For example if there is an image subfolder under your extension project workspace:

Alt text

You can also scrape from the web to get additional information from stack overflow about you problem.

Alt text

Requirements

Please make sure you have set your api-key from openai correctly in your environment variables! See https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety for more instructions on how to set the key.

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft