From 04547d69864a4044fd199acce827d4cd8e4c97aa Mon Sep 17 00:00:00 2001 From: Agastya Kumar Yadav Date: Sat, 23 Nov 2024 21:28:48 +0530 Subject: [PATCH] Update chatbot.jsx --- chatbot.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chatbot.jsx b/chatbot.jsx index ea392d4..c51d328 100644 --- a/chatbot.jsx +++ b/chatbot.jsx @@ -9,8 +9,7 @@ function App() { console.log("loading") const response =await axios({ - url :"https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-latest:generateContent?key=AIzaSyDQz5dgbtryYd3MG_sDxfdFBPtL9JeBIPU" , - method : "post" , + data : {"contents":[{"parts":[{"text":"can u give the roadmap of dsa"+"give within 200 words"}]}]} // input of the user }) ; console.log(response['data']['candidates'][0]['content']['parts'][0]['text']); // output of the user