Universal API chat Python client for OpenAI, MistralAI, Anthropic, xAI, Google AI, or any OpenAI SDK LLM provider.
rm -rf dist build *.egg-infopython3 -m buildtwine upload dist/*- 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
Try the eclosed in the source code 'sample_chat.py' file:
python3 sample_chat.py