Allow user to have a conversation with different AI models, build on OLlama
- Choose from different AI models from Ollama like Llama 2, Mistral, etc.
- Have a natural conversation with the selected AI assistant
- Useful commands like search, run code, etc.
- Saves chat history to file
- Clone the repository
git clone https://github.com/centopw/Pyma.git
- Install the requirements
pip install -r requirements.txt
- Run the main.py file
python /app/main.py
/exit
- Exit the program/search
- Searches DuckDuckGo and returns top result- ~ More are coming soon!
The main configuration is in constants.py
.
Set API_URL
to the endpoint for model APIs.
Customize other constants if needed.
main.py
- Main file to runconstants.py
- Constants used in the programchat.py
- Chat class to handle chat logicutils.py
- Utility functions
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.