Skip to content

Latest commit

 

History

History
9 lines (9 loc) · 727 Bytes

README.md

File metadata and controls

9 lines (9 loc) · 727 Bytes

How to run

Installation:

  1. Clone the repository
  2. In your terminal, write: npm install
  3. In the project directory, create .env file and add your API key as: API_KEY="Paste API Key here" (navigate to https://aistudio.google.com to generate API key) Note: I have used Gemini 1.5 pro model. Check main.js for model parameters.
  4. Write node main.js on your IDE's terminal to run the server and navigate to localhost:3000 (double-check port number)

P.S. - If you get 'undefined' as response while using the chatbot, it may be due to too many requests at the server end. To solve this, try to send each query with a brief pause.