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.
New Features
Chat
Hugging Face Support
- Speech to Text (ensure you've set a automatic-speech-recognition model)
facebook/wav2vec2-large-960h-lv60-self)
hf /PATH/TO/AUDIO/file.mp3
- Text (ensure you've set a text-based model)
gpt2
- Translation (ensure you've set a translation-based model)
t5-base
- Change model:
hf model = gpt2
OpenAI
Clarifai
clarifai https://samples.clarifai.com/dog2.jpeg
clar /LOCAL/FILE/PATH/image.webp
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`
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:
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:
- Improved chat
- More support for Hugging Face
- Storing secret API keys
- Support for any Clarifai model (audio, text)
- More configuration
To-Do
Contributions are widely encouraged, get involved to earn XP (high/mid/low prioirty)
- Improved UX of chat window (high)
- Write proper tests for pre-release checks (high)
- Add vscode walkthrough (high)
- Store secret API keys (high)
- Export as Chrome extension (mid)
- Export as Logic extension (mid)
- More models/source integrations (mid)
- More types of generation (tts, video, 3d models) (mid)
- Stream response info (low)
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