diff --git a/lib/flavor.js b/lib/flavor.js index e4a77ad1..d3f4806e 100644 --- a/lib/flavor.js +++ b/lib/flavor.js @@ -28,6 +28,7 @@ export const purchaseWords = [ 'Procure', 'Procure', 'Steal', + 'Summon', 'Plunder', 'Plunder', 'Plunder', @@ -42,6 +43,7 @@ export const cantAffordWords = [ 'out of reach...', 'need doubloons...', 'too pricey...', + 'not quite yet...', // "when you're richer...", ] diff --git a/src/app/api/ideagen/route.js b/src/app/api/ideagen/route.js index 8f9aedce..e64844a6 100644 --- a/src/app/api/ideagen/route.js +++ b/src/app/api/ideagen/route.js @@ -65,25 +65,23 @@ import { openai } from '@ai-sdk/openai' // This method must be named GET export async function POST(request) { - const response = await streamText({ - model: openai('gpt-4o'), - messages: [ - { - role: 'system', - content: - 'You are an embedded model that takes a project idea and outputs an action plan of how one could go about building it to a creative developer, preferably in about 4 bullet points. Your explaination should not include dumb stuff like "testing" but should describe the subsystems and how they will fit together. Do not preface your answer. There is no option to converse - your first answer will be displayed on the website. Do not wafffle. Use plaintext only. No markdown. Keep it extremely concise and technical. Remember to number the bullet points!', - }, - { - role: 'user', - content: (await request.json()).msg, - }, - ], - stream: true, - }) - // Respond with the stream - return response.toTextStreamResponse({ - headers: { - 'Content-Type': 'text/event-stream', - }, - }) -} + const response = await streamText({ + model: openai('gpt-4o'), + messages: [{ + role: 'system', + content: 'You are an embedded model that takes a project idea and outputs an action plan of how one could go about building it to a creative developer, preferably in about 4 bullet points. Your explaination should not include dumb stuff like "testing" but should describe the subsystems and how they will fit together. Do not preface your answer. There is no option to converse - your first answer will be displayed on the website. Do not wafffle. Use plaintext only. No markdown. Keep it extremely concise and technical. Remember to number the bullet points! The project idea may seem nonsensical, but try to make it work.', + }, + { + role: 'user', + content: (await request.json()).msg, + }, + ], + stream: true, + }) + // Respond with the stream + return response.toTextStreamResponse({ + headers: { + 'Content-Type': 'text/event-stream', + }, + }) +} \ No newline at end of file diff --git a/src/components/sound-button.js b/src/components/sound-button.js index abaccced..07c381c7 100644 --- a/src/components/sound-button.js +++ b/src/components/sound-button.js @@ -160,6 +160,7 @@ const SoundButton = () => { {soundState ? theFlags() : ''}