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
export requirements.txt
poetry export -f requirements.txt --output requirements.txt --without-hashes --without-urls
Project details
Release history Release notifications | RSS feed
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.10.tar.gz
(79.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file botrun_litellm-0.2.10.tar.gz.
File metadata
- Download URL: botrun_litellm-0.2.10.tar.gz
- Upload date:
- Size: 79.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
114d992e5e000cee17b40fd4d44bdf265cf833ddfd1e4996e62f943c8024497e
|
|
| MD5 |
867cdceac575d6fb1eae020ce0d19977
|
|
| BLAKE2b-256 |
0b4f83fba8dc28cd20af939a2c88713f27fafeeaba75e4e04e8cabbaf61f674f
|
File details
Details for the file botrun_litellm-0.2.10-py3-none-any.whl.
File metadata
- Download URL: botrun_litellm-0.2.10-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b931ef281168e00fb9621edf9a00df34bc6a34e650001f7e6bed16880836edb4
|
|
| MD5 |
19fb26a69ec5874d5f60e971483dde5d
|
|
| BLAKE2b-256 |
e6c3ed8f9fcb869381c03f56890ebb08e2d3eaaa3e484389725c65f526b9684e
|