Skip to content

Commit

Permalink
feat: adds an /art shortcut for generating a quick AI art prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
Fortyseven committed Aug 16, 2024
1 parent 0c30424 commit 4dfe0f0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/TabPages/Conversation/InputBox/InputBox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
import { Readability } from '@mozilla/readability';
const QUICK_ART_PROMPT =
'[Write a paragraph visually describing the current scenario for an AI art generator. Describe the scene, the mood, etc.]';
let inputEl = undefined;
onMount(() => {
Expand Down Expand Up @@ -94,6 +97,9 @@
$inputText = '';
return;
} else if (msg === '/art') {
$inputText = QUICK_ART_PROMPT;
return;
} else if (isUrl(msg?.trim())) {
// if we have a solo URL in the input, fetch it and use the text body as the input
try {
Expand Down

0 comments on commit 4dfe0f0

Please sign in to comment.