https://github.com/stackmasteraliza/cook-ai
This project is a Node.js and Express-based API that allows users to ask cooking-related questions. It uses Hugging Face's LLaMA model to generate AI-powered responses.
https://github.com/stackmasteraliza/cook-ai
Last synced: about 18 hours ago
JSON representation
This project is a Node.js and Express-based API that allows users to ask cooking-related questions. It uses Hugging Face's LLaMA model to generate AI-powered responses.
- Host: GitHub
- URL: https://github.com/stackmasteraliza/cook-ai
- Owner: stackmasteraliza
- Created: 2025-02-04T15:26:48.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-06T16:31:16.000Z (about 1 year ago)
- Last Synced: 2025-02-06T17:22:42.449Z (about 1 year ago)
- Language: HTML
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Express.js Cooking AI Chatbot
This project is a Node.js and Express-based API that allows users to ask cooking-related questions. It uses Hugging Face's LLaMA model to generate AI-powered responses.
## Features
- Query Hugging Face's LLaMA model for cooking advice.
- Handle API requests and responses using Express.js.
- JSON-based API for easy integration with frontend applications.
## Video Presentation
https://github.com/user-attachments/assets/cbf9ba82-6b52-4894-8e79-dfa0e05b8710
## Requirements
- Node.js (v14+)
- Express.js
- Hugging Face API key
## Installation
1. Clone this repository:
```sh
git clone https://github.com/stackmasteraliza/cook-ai.git
cd cook-ai
```
2. Install dependencies:
```sh
npm install
```
3. Create a `.env` file and add your Hugging Face API key:
```sh
HUGGINGFACE_API_KEY=your_api_key_here
```
## Usage
1. Start the server:
```sh
node index.js
```
2. Make a request to the API:
```sh
curl -X POST http://localhost:3000/ask -H "Content-Type: application/json" -d '{"question": "How do I make a perfect omelette?"}'
```
## API Endpoints
### `POST /ask`
**Request:**
```json
{
"question": "How do I make a perfect omelette?"
}
```
**Response:**
```json
{
"answer": "To make a perfect omelette, beat eggs, heat butter in a pan, pour the eggs, and fold when slightly firm."
}
```
## Technologies Used
- Node.js
- Express.js
- Hugging Face API (LLaMA Model)
## License
This project is licensed under the MIT License.