Spaces:
Running
Running
add log to check free requests
Browse files- app/api/ask-ai/route.ts +1 -0
app/api/ask-ai/route.ts
CHANGED
|
@@ -68,6 +68,7 @@ export async function POST(request: NextRequest) {
|
|
| 68 |
authHeaders.get("x-forwarded-for")?.split(",")[0].trim() ||
|
| 69 |
authHeaders.get("x-real-ip") ||
|
| 70 |
"0.0.0.0";
|
|
|
|
| 71 |
|
| 72 |
if (!token) {
|
| 73 |
ipAddresses.set(ip, (ipAddresses.get(ip) || 0) + 1);
|
|
|
|
| 68 |
authHeaders.get("x-forwarded-for")?.split(",")[0].trim() ||
|
| 69 |
authHeaders.get("x-real-ip") ||
|
| 70 |
"0.0.0.0";
|
| 71 |
+
console.log(authHeaders);
|
| 72 |
|
| 73 |
if (!token) {
|
| 74 |
ipAddresses.set(ip, (ipAddresses.get(ip) || 0) + 1);
|