Google Gemini AI API - JavaScript & Node JS Tutorial

Поділитися
Вставка
  • Опубліковано 1 лис 2024

КОМЕНТАРІ • 2

  • @NonSenseGuy404
    @NonSenseGuy404 3 місяці тому +2

    Thank you so much it finally worked, but do you have any idea how can i link it with HTML? for example i want to take an input's value then put it inside the propmt variable.

    • @mitter-yourtechmate4376
      @mitter-yourtechmate4376  3 місяці тому

      Hello,
      Thanks for reaching out.
      Best would be to Create API POST Endpoint using express server "npm install express" and call this endpoint from frontend, and pass prompt as parameter.
      Plz refer this video,
      ua-cam.com/video/4WzI2Pf7r-4/v-deo.html
      It's using chatGpt api but it will point you in right direction Hopefully as process is going to be same for Gemini.