Skip to content

Commit

Permalink
Update chatbot.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
agastya3636 authored Nov 23, 2024
1 parent dbf73ff commit 04547d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions chatbot.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 04547d6

Please sign in to comment.