Awesome
unichat
Universal API chat Python client for OpenAI, MistralAI, Anthropic, xAI, and Google AI.
Build sequence:
rm -rf dist build *.egg-info
python3 -m build
twine upload dist/*
Usage:
- Install the pip package:
pip install unichat
-
Add the class 'UnifiedChatApi' from module 'unichat' to your application:
-
[optional] Import MODELS_LIST as well for additional validation
Functionality testing:
Try the eclosed in the source code 'sample_chat.py' file:
python3 sample_chat.py