Spaces:
Build error
Build error
rewrite prompt everytime
Browse files- app/api/ask-ai/route.ts +2 -2
app/api/ask-ai/route.ts
CHANGED
|
@@ -100,10 +100,10 @@ export async function POST(request: NextRequest) {
|
|
| 100 |
|
| 101 |
let rewrittenPrompt = prompt;
|
| 102 |
|
| 103 |
-
if (prompt?.length < 240) {
|
| 104 |
|
| 105 |
rewrittenPrompt = await callAiRewritePrompt(prompt, { token, billTo });
|
| 106 |
-
}
|
| 107 |
|
| 108 |
try {
|
| 109 |
const encoder = new TextEncoder();
|
|
|
|
| 100 |
|
| 101 |
let rewrittenPrompt = prompt;
|
| 102 |
|
| 103 |
+
// if (prompt?.length < 240) {
|
| 104 |
|
| 105 |
rewrittenPrompt = await callAiRewritePrompt(prompt, { token, billTo });
|
| 106 |
+
// }
|
| 107 |
|
| 108 |
try {
|
| 109 |
const encoder = new TextEncoder();
|