Home

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:

  1. Install the pip package:
pip install unichat
  1. Add the class 'UnifiedChatApi' from module 'unichat' to your application:

  2. [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