A wrapper for litellm with TAIDE configuration support
Project description
README.md
botrun_litellm
A wrapper for litellm with TAIDE configuration support.
Installation
pip install botrun_litellm
Usage
from botrun_litellm import botrun_litellm_completion
response = botrun_litellm_completion(
messages=[{"role": "user", "content": "Hello!"}],
model="openai/gpt-4"
)
Usage 2
from botrun_litellm import botrun_litellm_completion
response = botrun_litellm_completion(
messages=[{"role": "user", "content": "Hello!"}],
model="taide/openai/Llama3-TAIDE-LX-70B-Chat",
api_base: "base_url",
api_key: "api_key"
)
Environment Variables
The following environment variables are required:
TAIDE_BASE_URL
: Base URL for TAIDE APITAIDE_API_KEY
: API key for TAIDE
Supported models
- "taide/openai/Llama-3.1-405B-Instruct-FP8",
- "taide/openai/Llama-3.1-70B",
- "taide/openai/Llama-3.1-Nemotron-70B-Instruct",
- "taide/openai/Llama3-TAIDE-LX-70B-Chat",
- "taide/openai/TAIDE-LX-70B-Chat"
License
MIT License
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
botrun_litellm-0.2.1.tar.gz
(3.1 kB
view details)
Built Distribution
File details
Details for the file botrun_litellm-0.2.1.tar.gz
.
File metadata
- Download URL: botrun_litellm-0.2.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e023b1232e253e6d9732cb0673d787badf5c22443fb80d56798014e26395caa3 |
|
MD5 | 33bfa9605bf7be332b58e494b1508c06 |
|
BLAKE2b-256 | e9700a024f993915b8c13678db443732dc20e2ddf4ffa13de595780b36824eae |
File details
Details for the file botrun_litellm-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: botrun_litellm-0.2.1-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af6a04f504c8a370d75c643f0f2470bcd067e35b70c979d1f85b27bf68f0bd45 |
|
MD5 | 0cb551696ff708c8576eba86cdc059cc |
|
BLAKE2b-256 | 355a4e44a861859137e5247cee8b87ad89993da68d956db5c3c0d36176a951b5 |