Skip to main content

Universal API chat Python client for OpenAI, MistralAI, Anthropic, xAI, Google AI, or any OpenAI SDK LLM provider.

Project description

unichat

Universal API chat Python client for OpenAI, MistralAI, Anthropic, xAI, Google AI, or any OpenAI SDK LLM provider.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unichat-4.3.2.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unichat-4.3.2-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file unichat-4.3.2.tar.gz.

File metadata

  • Download URL: unichat-4.3.2.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for unichat-4.3.2.tar.gz
Algorithm Hash digest
SHA256 b39573393b4832c4dbeaa4da848bb9dac7c119864cd4ce24016c10938cc1bc0e
MD5 1830d6dfa01cd10ae8e233550af3c8bf
BLAKE2b-256 ece0d384ef03f6da13abc27c8ad03469867595172b89d062a8123a9eace8ea0e

See more details on using hashes here.

File details

Details for the file unichat-4.3.2-py3-none-any.whl.

File metadata

  • Download URL: unichat-4.3.2-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for unichat-4.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4afb79c11ac42edf726fa018f61fc63fa0a6723db756b3f4fdd03693c68219af
MD5 77d9dd4e632faadc729cebbe036a0313
BLAKE2b-256 8587880e939938c6ea6808d2742884c62d18170c5a16be09354cfae61adf8f28

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page