Welcome to Frnly, a highly customizable chatbot built with Golang! This project leverages OpenAI's GPT API to provide you with natural, interactive, and intelligent conversations.
- 📝 Text-based user interface
- 🎨 Highly customizable
- 💾 Persistent history
- 🌐 OpenAI GPT API Integration
git clone https://github.com/mohakim/frnly.git
cd frnly
go build
- Starting Up: Run the
frnly
executable from the terminal. - User Input: Type your queries after the prompt. Use
!fin
to submit the query. - Clear Screen: Type
!clear
to clear the screen. - Exit: Type
!exit
to terminate the program.
Edit the settings.conf
file in the ~/.config/frnly
directory to customize the assistant. Here's what each setting means:
- API_KEY: Your OpenAI API key.
- Temperature: Controls the randomness of the assistant's replies.
- Model: The GPT model to use.
- Prompt: Customize the prompt text.
- CodeBlock: Code output color
- UserColor: User input color
- BotColor: Default assistant color
- Context: Control the context size (will impact token usage)
- sessions: Allow users to create, delete, and cycle through sessions.
- cross-platform: Make the program more Windows compatible.
- encryption: Ensure session files are encrypted.
- tokens: Measure with relevance to tokens and show usage statistics.
- config: Increase the number of configuration options
- error-handling: Improve resilience to errors
- GoLang >= 1.16
- OpenAI API Key