Skip to content

Commit

Permalink
feat(dalle): Add support for OpenAI DALL-E (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
briansunter authored Nov 9, 2022
1 parent 3f05b9b commit c9a8adb
Show file tree
Hide file tree
Showing 7 changed files with 390 additions and 288 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ Type `/gpt-page` in a block or select `gpt-page` from the block menu.
`gpt-page` will send the entire page to OpenAI's GPT-3 API and append the response to the bottom of the page.

![logseq gpt-page](docs/gpt-page.gif)

### `dalle`
Type `/dalle` in a block or select `dalle` from the block menu.

This will generate an image using the DALL-E model, save the image to the `assets` folder, and insert the image into the block.

![logseq dalle](docs/dalle.gif)

### OpenAI Examples
[See here for example usages](https://beta.openai.com/examples).

Expand Down
Binary file added docs/dalle.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
"vite-plugin-logseq": "^1.1.2"
},
"dependencies": {
"@logseq/libs": "^0.0.6",
"@logseq/libs": "^0.0.10",
"exponential-backoff": "^3.1.0",
"openai": "^2.0.5"
"openai": "^3.0.0"
},
"logseq": {
"name": "logseq-plugin-gpt3-openai",
Expand Down
Loading

0 comments on commit c9a8adb

Please sign in to comment.