Skip to content

Megh2005/Sampark-AI

Repository files navigation

🤖 Sampark AI

📔 Overview

Sampark is an artificial intelligence enabled chat application which is controlled by Google Gemini {Pro} API. Integration of a gemini pro api key sllows you to generate response from Gemini directly. In Sampark you need to enter your question in the given space and hit the Generate Response button. The Gemini AI model will generate the most precised and to the point answers for you.

⚙️ Environment Variables

AI_GENERATIVE = < Your API Key >

🔧 Setting Up Gemini API Key

Step - 1

To generate your Gemini API key you need to go to Google AI studio by clicking   here   and create an account or sign in with an existing Google account

Step - 2

After sign up go to Get Your API Key and it will redirect you to Gemini API platform. There you need to check some terms and conditions. After that click Get Started

Step - 3

Now click on Create API Key from there click the Generate API Key in New Project section. After that the console will generate a Gemini API key for you. Just copy that API key and keep it pasted in a safe place

⚠️ Statutary Warning

Use your API keys securely. Do not share them or embed them in code the public can view. Just add it to a environment variavle in a .env file and don't forget to add a .gitignore to that env file. While deploying it at vercel or netlify the just go to the set environment variables tab and set your env variable name and value.

💾 Installation

Clone This Repository

git clone https://github.com/Megh2005/Sampark-AI.git

Navigate To The Code File

cd Sampark-AI

Install All Dependencies

npm install

Open With Code

code .

Run The Project

npm run dev

Project URL

http://localhost:5173

📥 Contribution & Issues

I am not so good at frontend. I have coded a very basic CSS and requesting all frontend developers to contribute an attractive frontend. If you have any ideas for improvements & new features, feel free to open an issue or submit a pull request :

Fork The Repository

git remote -v https://github.com/Megh2005/Sampark-AI.git

Create New Branch

git checkout -b feature/your-feature

Commit Your Changes

git commit -m "Add your feature"

Push To The Branch

git push origin feature/your-feature

Submit a pull request

git pull-request [username] [branch]

💻 Tech Stack

My Skills   My Skills   My Skills   My Skills   My Skills   My Skills  

🔗 Deployment

My Skills   My Skills   My Skills   My Skills

Please dont forget to visit my GitHub repository and please hit a ⭐ in the GitHub repository