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.3.tar.gz
(2.4 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.3.tar.gz.
File metadata
- Download URL: botrun_litellm-0.2.3.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f96e6a113dadafe102071f55bc3520b2b7c3c54a3e8f3144a638b8a4179b557
|
|
| MD5 |
7b375af4cb1bead45dd273a1bb416808
|
|
| BLAKE2b-256 |
36916bbed14abfeda9efc435e903fef713730d7d99def8a53a5c7b5e51d60768
|
File details
Details for the file botrun_litellm-0.2.3-py3-none-any.whl.
File metadata
- Download URL: botrun_litellm-0.2.3-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f88e55bf07f504140cd7c97048f4a5258c8b7e9bcbcef02d92147cb49f970bf
|
|
| MD5 |
e4ae6529bb05dfd43273d5576823e5f7
|
|
| BLAKE2b-256 |
71afd5bfeae69c3392582795f10204479a5d239281c450b40958f2d8fa9be14c
|