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.2.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file botrun_litellm-0.2.2.tar.gz
.
File metadata
- Download URL: botrun_litellm-0.2.2.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f119730c191bd051ed7f837331026aaf546f992e4ead300c2e66908e35fdb2f6 |
|
MD5 | e57072231e7952c4d7124ab28a86d2ba |
|
BLAKE2b-256 | d9649e1ff56a961673b4acdca0b0290dfca29ede2934c125e6e6fb3dc84f8952 |
File details
Details for the file botrun_litellm-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: botrun_litellm-0.2.2-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 | 9e3407162d693571609858fa6fd124564ef78c9f3335d4947d4d7bf88de688fe |
|
MD5 | fe20d5a08cf0a0a18087bdc5f1e00646 |
|
BLAKE2b-256 | 8de0958d4bab9d8f645d331a1d9aa262a6cc3d2f2f7d62650f8d83ec1e3d33f5 |