Installing the Promptfile VS Code Extension
Promptfile is designed to work seamlessly within Visual Studio Code. Go here to install the Promptfile extension (opens in a new tab).
Accessing Promptfile Settings
Open the Settings by opening the VS Code Command Palette by pressing Command (⌘) + Shift (⇧) + P
. Run the Promptfile: open settings
command.
Settings
Name | Type | Description | Default |
---|---|---|---|
promptfile.defaultModel | string | Default model for playground use | "gpt-3.5-turbo" |
promptfile.openaiKey | string | OpenAI API key | "" |
promptfile.functionEndpoint | string | Endpoint to use for function invocations | "http://localhost:7777/function" |
promptfile.anthropicKey | string | Anthropic API key | "" |
promptfile.githubKey | string | GitHub API key | "" |
Commands
Name | Description |
---|---|
Promptfile: run in playground | Runs a .prompt file. |
Promptfile: open settings | Opens the .prompt settings in your VS Code settings.json file. |
Promptfile: transpile to another language | This command transpiles .prompt files to the language of your choice. |