This is a command-line chatbot leveraging Replicate.com to run the openai/gpt-4o-mini language model with persistent conversation memory and speech synthesis.
- Persistent conversation saved in JSON files
- Start, end, and control chat sessions with commands
- Auto and manual text-to-speech (TTS) playback
- Speech audio saved to
./services/sounds - Commands to stop speech and clear audio files
- Easily configurable via
.envfile
git clone https://github.com/GitHubNexon/FINCH.gitCreate a .env file in the project root directory with the following content:
REPLICATE_API_TOKEN=your_replicate_api_token_here
MODEL_NAME=openai/gpt-4o-miniYou can get your Replicate API token here: https://replicate.com/account/api-tokens
python -m venv venv.�env\Scripts\Activatepip install -r requirements.txtpython chat.py| Command | Description |
|---|---|
/start |
Start a new conversation session |
/end |
End the current conversation and clear memory |
/stop |
Stop speech playback |
/clear |
Clear saved audio files from sounds folder |
- Conversations are stored in JSON files to allow persistent memory between sessions.
- Speech audio files are stored in
./services/sounds. Use/clearcommand to remove them. - Ensure your
.envfile is properly configured before running the chatbot.