Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>AI-KeysNew to Visual Studio Code? Get it now.

AI-Keys

tomcodedthis

|
106 installs
| (0) | Free
Connect to generative AI models from varied providers.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

AI-Keys

A VSCode extension to use and manage generative AI from varied sources.

Keep control of your keys, usage and costs directly to the model provider.

  • Features with Examples
  • Setup
  • Requirements
  • Extension Commands
  • In-Development
  • To-Do
  • Known Issues

New Features

Hugging Face Support

Change model:

hf model = gpt2

Translation (ensure you've set a translation model, e.g. t5-base):

hf hello, how are you?

Speech to Text (ensure you've set a automatic-speech-recognition model, e.g. facebook/wav2vec2-large-960h-lv60-self):

hf /PATH/TO/AUDIO/file.mp3

Chat using GPT-3.5-Turbo (define how it behaves in your AI-Keys configuration settings):

write a joke

think of a better one

repeat the first one

Reset chat (reduce token usage):

clearChat

Image Recognintion:

clarifai https://samples.clarifai.com/dog2.jpeg

clar /LOCAL/FILE/PATH/image.webp
Image Generation:

dalle a smiling dog

Features with Examples

Inline Search:

CMD/CTRL + Enter

or

CMD/CTRL + Alt + /
Specify Model ( optional, unspecified uses default model ):

gpt tell a joke

code-search-ada-code-001 write a function that adds 2 numbers
List Supported Models:

CMD/CTRL + ALT + M
Shorthand Arguments (multiline prompts are only supported as comments):

convert / cv
# cv javascript
# def add(x, y):
# return x + y


optimise / op
// op
// function add(x, y) {
// return x + y
// }

explain / ex
# ex
# def add(x, y):
# return x + y`
Input Box Search:

CMD/CTRL + Shift + P

AI-Keys: Search Prompt

Setup

Set API Keys and default configuration:

CMD/CTRL + Shift + P

AI-Keys: Open Settings

Provider Model Prefix Type Cost
OpenAI GPT-3.5-Turbo gpt Chat See more
GPT3 gpt3 Text
DALL·E dalle Image See more
Clarifai Any clarifai Image Recognition 1,000 Free Operations per month
clar See more
Hugging Face Any huggingface Text, Translation, Speech Recognition 30,000 Free Prompt Characters per month
hf See more
hface

Requirements

An active text editor to read and write to.

At least one API key from our supported AI sources:

OpenAI

Clarifai


Extension Commands

  • aikeys.goToSettings: Open extension settings
  • aikeys.sendLinePrompt: Send prompts from inline active editor
  • aikeys.sendBoxPrompt: Send prompts from VSCode input box
  • aikeys.listModels: List all available models
  • aikeys.clearChat: Clear chat history with GPT

In-Development

Features currently being worked on:

  1. More support for Hugging Face
  2. Storing secret API keys
  3. Support for any Clarifai model (audio, text)
  4. More configuration

To-Do

Contributions are widely encouraged, get involved to earn XP

  • Conversation window, animated character (if possible)
  • Write proper tests for pre-release checks
  • Stream response info
  • More models/source integrations
  • More types of generation (tts, video, 3d models)

Known Issues

Please raise any issues / suggestions

  • Multiline prompts not accepted if there is an indent before comment symbol
  • Some configurations require the window to be refreshed to take effect
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft