https://github.com/fcorti/hello-genai
Hello wolrd applications for genAI based on an OpenAI API.
https://github.com/fcorti/hello-genai
Last synced: 2 months ago
JSON representation
Hello wolrd applications for genAI based on an OpenAI API.
- Host: GitHub
- URL: https://github.com/fcorti/hello-genai
- Owner: fcorti
- License: apache-2.0
- Created: 2025-03-15T08:33:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-15T16:22:27.000Z (over 1 year ago)
- Last Synced: 2025-10-12T14:47:02.643Z (8 months ago)
- Language: HTML
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hello-genai
A simple chatbot web application built in Go, Python and Node.js that connects to a local LLM service (llama.cpp) to provide AI-powered responses.
## Environment Variables
The application uses the following environment variables defined in the `.env` file:
- `LLM_BASE_URL`: The base URL of the LLM API
- `LLM_MODEL_NAME`: The model name to use
To change these settings, simply edit the `.env` file in the root directory of the project.
## Quick Start
1. Clone the repository:
```bash
git clone https://github.com/yourusername/hello-genai.git
cd hello-genai
```
2. Run the application using the script:
```bash
./run.sh
```
3. Open your browser and visit the following links:
http://localhost:8080 for the GenAI Application in Go
http://localhost:8081 for the GenAI Application in Python
http://localhost:8082 for the GenAI Application in Node
## Requirements
- macOS (recent version)
- Either:
- Docker and Docker Compose (preferred)
- Go 1.21 or later
- Local LLM server
If you're using a different LLM server configuration, you may need to modify the`.env` file.