Skip to content

Commit 7869970

Browse files
committed
πŸ‘Œ IMPROVE: Updated search prompt
1 parent 9a41a98 commit 7869970

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

β€Žwallpaper-generator/pages/api/generate.tsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default async function handler(
1010
const { description } = req.body;
1111

1212
const options = {
13-
prompt: description,
13+
prompt: `Generate a wallpaper like ${description}`,
1414
n: 1,
1515
size: "1024x1024",
1616
};

β€Žwallpaper-generator/pages/index.tsxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import axios from "axios";
66

77
const Home: NextPage = () => {
88
const [description, setDescription] = useState<string>(
9-
"Generate milky way wallpaper"
9+
"Milky way galaxy"
1010
);
1111
const buttonRef = useRef<HTMLButtonElement>(null);
1212
const [wallpaper, setWallpaper] = useState<string | null>(null);

0 commit comments

Comments
Β (0)