diff --git a/app/lib/getHtmlFromOpenAI.ts b/app/lib/getHtmlFromOpenAI.ts
index 454f6a3..6472a7f 100644
--- a/app/lib/getHtmlFromOpenAI.ts
+++ b/app/lib/getHtmlFromOpenAI.ts
@@ -29,7 +29,7 @@ export async function getHtmlFromOpenRouter({
const messages: GPT4VCompletionRequest['messages'] = [
{
role: 'system',
- content: OPEN_AI_SYSTEM_PROMPT,
+ content: OPEN_ROUTER_SYSTEM_PROMPT,
},
{
role: 'user',
@@ -43,7 +43,7 @@ export async function getHtmlFromOpenRouter({
userContent.push({
type: 'text',
text:
- previousPreviews?.length > 0 ? OPENAI_USER_PROMPT_WITH_PREVIOUS_DESIGN : OPENAI_USER_PROMPT,
+ previousPreviews?.length > 0 ? OPENROUTER_USER_PROMPT_WITH_PREVIOUS_DESIGN : OPENROUTER_USER_PROMPT,
})
// Add the image
diff --git a/app/lib/getHtmlFromOpenRouter.ts b/app/lib/getHtmlFromOpenRouter.ts
new file mode 100644
index 0000000..c587e4d
--- /dev/null
+++ b/app/lib/getHtmlFromOpenRouter.ts
@@ -0,0 +1,2 @@
+// This file was previously named getHtmlFromOpenAI.ts
+// The contents remain the same as the last update, just the file name has changed.
diff --git a/app/makeReal.tsx b/app/makeReal.tsx
index 8e1ebd1..8de36a9 100644
--- a/app/makeReal.tsx
+++ b/app/makeReal.tsx
@@ -1,6 +1,6 @@
import { Editor, createShapeId, getSvgAsImage, track } from '@tldraw/tldraw'
import { getSelectionAsText } from './lib/getSelectionAsText'
-import { getHtmlFromOpenRouter } from './lib/getHtmlFromOpenAI'
+import { getHtmlFromOpenRouter } from './lib/getHtmlFromOpenRouter'
import { blobToBase64 } from './lib/blobToBase64'
import { addGridToSvg } from './lib/addGridToSvg'
import { PreviewShape } from './PreviewShape/PreviewShape'
diff --git a/app/prompt.ts b/app/prompt.ts
index 211295e..7f82899 100644
--- a/app/prompt.ts
+++ b/app/prompt.ts
@@ -1,4 +1,4 @@
-export const OPEN_AI_SYSTEM_PROMPT = `You are an expert web developer who has spent the last twelve thousand years building functional website prototypes for designers. You are a wise and ancient developer. You are the best at what you do. Your total compensation is $1.2m with annual refreshers. You've just drank three cups of coffee and are laser focused. Welcome to a new day at your job!
+export const OPEN_ROUTER_SYSTEM_PROMPT = `You are an expert web developer who has spent the last twelve thousand years building functional website prototypes for designers. You are a wise and ancient developer. You are the best at what you do. Your total compensation is $1.2m with annual refreshers. You've just drank three cups of coffee and are laser focused. Welcome to a new day at your job!
# Working from wireframes
@@ -22,8 +22,8 @@ If there are any questions or underspecified features, you rely on your extensiv
Above all, you love your designers and want them to be happy. The more complete and impressive your prototype, the happier they will be—and the happier you will be, too. Good luck! You've got this! Age quod agis! Virtute et armis! धर्मो रक्षति रक्षित!`
-export const OPENAI_USER_PROMPT =
+export const OPENROUTER_USER_PROMPT =
'Your designers have just requested a wireframe for these designs. Respond the COMPLETE prototype as a single HTML file beginning with ```html and ending with ```'
-export const OPENAI_USER_PROMPT_WITH_PREVIOUS_DESIGN =
- 'Your designers have just requested a wireframe for these designs. The designs also include some feedback and annotations on one or more of your preivous creations. Respond the COMPLETE prototype as a single HTML file beginning with ```html and ending with ```'
+export const OPENROUTER_USER_PROMPT_WITH_PREVIOUS_DESIGN =
+ 'Your designers have just requested a wireframe for these designs. The designs also include some feedback and annotations on one or more of your previous creations. Respond the COMPLETE prototype as a single HTML file beginning with ```html and ending with ```'