ThinkShift_LLM
ThinkShift_LLM is a flexible LLM manager that shifts between multiple language models to ensure robust and uninterrupted AI-powered conversations.
Features
- Manages multiple LiteLLM clients
- Shifts between models when errors occur
- Supports both streaming and non-streaming completions
- Detailed logging of all interactions
- Round-robin client selection
Installation
You can install tShift_LLM using pip:
pip install tshift-llm
Usage
Here's a quick example of how to use tShift_LLM:
from tshift_llm import tShift_LLM, LiteLLMClient
clients = [
LiteLLMClient("gpt-3.5-turbo", "your-openai-key"),
LiteLLMClient("claude-2", "your-anthropic-key"),
LiteLLMClient("command-nightly", "your-cohere-key")
]
tshift_llm = tShift_LLM(clients)
response = tshift_llm.completion(
messages=[{"role": "user", "content": "Hello, how are you?"}]
)
print(response.choices[0].message.content)
For more detailed usage instructions, please refer to the documentation.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for tshift-llm 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tshift_llm-0.2.2.tar.gz | 4.3 kB | Without provenance | Details for tshift_llm-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tshift_llm-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for tshift_llm-0.2.2-py3-none-any.whl |
Total release size: 9.0 kB
Release files / tshift_llm-0.2.2.tar.gz
| Download URL | tshift_llm-0.2.2.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c95ac657631336dd5c990ba0844a7bdcf6e75f0e6ff60aa964f2f756c58bcd64
|
|
BLAKE2b-256 checksum How to use checksums |
927f1694bd4c17716228c98bad2ac88607d82c7a7ed7137132ba769ceb6c3e80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Release files / tshift_llm-0.2.2-py3-none-any.whl
| Download URL | tshift_llm-0.2.2-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
05e0121d255fbf5b8217dae69848aec86fc8aba1c37f32b0f3d27c4cf156302c
|
|
BLAKE2b-256 checksum How to use checksums |
da17d6b97a53f567fb55ed622c8db9ad09ce96938a6680929c1839684aa1ed08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Security for tshift-llm 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.