diff --git a/src/actions/hello/ai.ts b/src/actions/hello/ai.ts index 2c46a88..332e4de 100644 --- a/src/actions/hello/ai.ts +++ b/src/actions/hello/ai.ts @@ -10,7 +10,7 @@ export function greetingPrompt(country: string) { } export function imagePrompt(insult: string, country: string) { - return `People of ${country} in ${country}. Inspired by "${insult}". Image should have a caricature artstyle, and look silly.`; + return `People of ${country} in ${country}. Inspired by "${insult}". Image should have a caricature artstyle, and look like it's taken from a drone'.`; } export async function promptAI(prompt: string): Promise { @@ -26,7 +26,10 @@ export async function promptAI(prompt: string): Promise { }); const msg = data.choices[0].message?.content; - if (!msg) throw new Error("No response from AI"); + if (!msg) + throw new Error("No response from AI", { + cause: data, + }); return msg; }