You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am making a travel chatbot using gemini, and it is working perfectly on local machine without any error. But when I had deployed it on vercel then it is not working.
Chatbot SS on local machine :
Chatbot SS when deployed :
Vercel Logs SS :
As you can see in Vercel Logs, the "hi" query is received without any error, but the response from chatbot is not working. I have tried to console log the response, but it is empty.
I have also added below code in ./layout.jsx and page.jsx , but still there is no response from chatbot.
import { unstable_noStore as noStore } from 'next/cache';
export const dynamic = 'force-dynamic';
export const maxDuration = 60;
import localFont from "next/font/local";
import "./globals.css";
import Navbar from "@/components/Navbar/Navbar";
import Footer from "@/components/footer/footer";
import {Providers} from "./Providers";
Description
Description:
I am making a travel chatbot using gemini, and it is working perfectly on local machine without any error. But when I had deployed it on vercel then it is not working.
Chatbot SS on local machine :
Chatbot SS when deployed :
Vercel Logs SS :
As you can see in Vercel Logs, the "hi" query is received without any error, but the response from chatbot is not working. I have tried to console log the response, but it is empty.
I have also added below code in ./layout.jsx and page.jsx , but still there is no response from chatbot.
I have referred to #1519 and https://sdk.vercel.ai/docs/troubleshooting/streaming-not-working-on-vercel , but still same problem is there, it is not resolving.
Github Repo : https://github.com/WiTheR60334/TrippoBot2
Code example
import { unstable_noStore as noStore } from 'next/cache';
export const dynamic = 'force-dynamic';
export const maxDuration = 60;
import localFont from "next/font/local";
import "./globals.css";
import Navbar from "@/components/Navbar/Navbar";
import Footer from "@/components/footer/footer";
import {Providers} from "./Providers";
const geistSans = localFont({
src: "./fonts/GeistVF.woff",
variable: "--font-geist-sans",
weight: "100 900",
});
const outfit = localFont({
src: "./fonts/Outfit-VariableFont_wght.ttf",
variable: "--outfit",
weight: "100 900",
});
export const metadata = {
title: "Trippo.ai",
description: "Perfect ChatBot for Travel Planning",
};
export default function RootLayout({ children }) {
noStore();
return (
<html lang="en" style={{ height: "100%", margin: "0" }}>
<script src="https://cdn.jsdelivr.net/npm/typed.js@2.0.12"></script>
);
}
AI provider
@ai-sdk/google: ^1.0.10
Additional context
No response
The text was updated successfully, but these errors were encountered: