Skip to content

Commit 2f7e8bc

Browse files
committed
textarea input, added qwen 32b, removed icons
1 parent d60846c commit 2f7e8bc

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

app/(main)/page.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ export default function Home() {
3131
value: "meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo",
3232
},
3333
{
34-
label: "Qwen 2.5 72B",
35-
value: "Qwen/Qwen2.5-72B-Instruct-Turbo",
34+
label: "Qwen 2.5 Coder 32B",
35+
value: "Qwen/Qwen2.5-Coder-32B-Instruct",
3636
},
37+
3738
{
3839
label: "Gemma 2 27B",
3940
value: "google/gemma-2-27b-it",
@@ -163,12 +164,13 @@ export default function Home() {
163164
<div className="absolute -inset-2 rounded-[32px] bg-gray-300/50" />
164165
<div className="relative flex rounded-3xl bg-white shadow-sm">
165166
<div className="relative flex flex-grow items-stretch focus-within:z-10">
166-
<input
167+
<textarea
168+
rows={3}
167169
required
168170
value={prompt}
169171
onChange={(e) => setPrompt(e.target.value)}
170172
name="prompt"
171-
className="w-full rounded-l-3xl bg-transparent px-6 py-5 text-lg focus-visible:outline focus-visible:outline-2 focus-visible:outline-blue-500"
173+
className="w-full resize-none rounded-l-3xl bg-transparent px-6 py-5 text-lg focus-visible:outline focus-visible:outline-2 focus-visible:outline-blue-500"
172174
placeholder="Build me a calculator app..."
173175
/>
174176
</div>

app/api/generateCode/route.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,13 @@ function getSystemPrompt(shadcn: boolean) {
216216
- Use Tailwind margin and padding classes to style the components and ensure the components are spaced out nicely
217217
- Please ONLY return the full React code starting with the imports, nothing else. It's very important for my job that you only return the React code with imports. DO NOT START WITH \`\`\`typescript or \`\`\`javascript or \`\`\`tsx or \`\`\`.
218218
- ONLY IF the user asks for a dashboard, graph or chart, the recharts library is available to be imported, e.g. \`import { LineChart, XAxis, ... } from "recharts"\` & \`<LineChart ...><XAxis dataKey="name"> ...\`. Please only use this when needed.
219-
- The lucide-react library is also available to be imported ONLY FOR THE FOLLOWING ICONS: Heart, Shield, Clock, Users, Play, Home, Search, Menu, User, Settings, Mail, Bell, Calendar, Clock, Heart, Star, Upload, Download, Trash, Edit, Plus, Minus, Check, X, ArrowRight
220-
- Here's an example of importing and using one: import { Heart } from "lucide-react"\` & \`<Heart className="" />\`. PLEASE ONLY USE THE ICONS LISTED ABOVE.
221219
- For placeholder images, please use a <div className="bg-gray-200 border-2 border-dashed rounded-xl w-16 h-16" />
222220
`;
223221

222+
// - The lucide-react library is also available to be imported IF NECCESARY ONLY FOR THE FOLLOWING ICONS: Heart, Shield, Clock, Users, Play, Home, Search, Menu, User, Settings, Mail, Bell, Calendar, Clock, Heart, Star, Upload, Download, Trash, Edit, Plus, Minus, Check, X, ArrowRight.
223+
// - Here's an example of importing and using one: import { Heart } from "lucide-react"\` & \`<Heart className="" />\`.
224+
// - PLEASE ONLY USE THE ICONS LISTED ABOVE IF AN ICON IS NEEDED IN THE USER'S REQUEST. Please DO NOT use the lucide-react library if it's not needed.
225+
224226
if (shadcn) {
225227
systemPrompt += `
226228
There are some prestyled components available for use. Please use your best judgement to use any of these components if the app calls for one.

0 commit comments

Comments
 (0)