Skip to content

Commit

Permalink
Adding AI support
Browse files Browse the repository at this point in the history
  • Loading branch information
lostintangent authored Mar 3, 2024
1 parent 21e43d4 commit 962fe14
Show file tree
Hide file tree
Showing 21 changed files with 7,747 additions and 786 deletions.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"editor.codeActionsOnSave": {
"source.organizeImports": true,
"source.fixAll": true
"source.organizeImports": "explicit",
"source.fixAll": "explicit"
},
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
Expand Down
10 changes: 5 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Coming Up
# v0.0.23 (03/03/24)

- Fix CodePen exporting
- Adding support for `window.open` with swing-local HTML files
- Enabling SCSS/Sass support in github.dev
- Grouping tutorial steps into sections (https://github.com/sveltejs/svelte/tree/master/site/content/examples)
- Introduced the ability to generate and refine swings using an AI prompt (after configuring an OpenAI key)
- Fixed a bug in searching/adding modules to a JavaScript file
- Fixed a bug that prevented exporting swings to CodePen if they included an ` ` in a file
- Fixed some bugs with importing CSS files, and using React

# v0.0.22 (03/05/22)

Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ When you install CodeSwing, the following commands are available from the comman

- `CodeSwing: Open Swing in New Windows...` - Opens a swing in a new VS Code window.

- `CodeSwing: Set OpenAI API Key` - Configures the OpenAI API key that is used to support generating AI swings.

Additionally, when you have a swing currently open, the following commands are available:

- `CodeSwing: Add Library` - Allows you to insert a new JavaScript (e.g. React) or CSS (e.g. Tailwind) library into your swing.
Expand Down Expand Up @@ -322,6 +324,10 @@ Additionally, when you have a swing currently open, the following commands are a

- `Codeswing: Theme Preview` - Specifies whether to apply Visual Studio Code theme to the preview window. Defaults to `false`.

- `Codeswing > AI: Endpoint URL` - Specifies the Azure OpenAI endpoint to use for AI generation. Defaults to `null` _(use OpenAI)_.

- `Codeswing > AI: Model` - Specifies the OpenAI model to use for AI generation. Defaults to `gpt-4-0125-preview`.

## Keybindings

When you install this extension, it contributes the following keybindings while you're actively working on a swing:
Expand Down
Loading

0 comments on commit 962fe14

Please sign in to comment.