Spaces:
Running
Running
osanseviero
commited on
Commit
•
0e18678
1
Parent(s):
41e963e
Update app/api/generateCode/route.ts
Browse files
app/api/generateCode/route.ts
CHANGED
@@ -32,8 +32,6 @@ export async function POST(req: Request) {
|
|
32 |
messages[0].content + systemPrompt + "\nPlease ONLY return code, NO backticks or language names. Don't start with \`\`\`typescript or \`\`\`javascript or \`\`\`tsx or \`\`\`."
|
33 |
);
|
34 |
|
35 |
-
console.log(messages[0].content + systemPrompt + "\nPlease ONLY return code, NO backticks or language names. Don't start with \`\`\`typescript or \`\`\`javascript or \`\`\`tsx or \`\`\`.")
|
36 |
-
|
37 |
const readableStream = new ReadableStream({
|
38 |
async start(controller) {
|
39 |
for await (const chunk of geminiStream.stream) {
|
|
|
32 |
messages[0].content + systemPrompt + "\nPlease ONLY return code, NO backticks or language names. Don't start with \`\`\`typescript or \`\`\`javascript or \`\`\`tsx or \`\`\`."
|
33 |
);
|
34 |
|
|
|
|
|
35 |
const readableStream = new ReadableStream({
|
36 |
async start(controller) {
|
37 |
for await (const chunk of geminiStream.stream) {
|