Smart model routing layer for LangChain + OpenRouter
Project description
ChatModelTask
Smart model routing layer for LangChain + OpenRouter.
Installation
pip install chatmodeltask
from chatModelTask import ChatModelTask
llm = ChatModelTask(task_description="summarization")
print(llm.invoke("Hello world"))
Environment Variables
OPENROUTER_API_KEY=... REDIS_HOST=localhost MODEL_SCORE_ENGINE_BASE_URL=... MODEL_SCORE_ENGINE_API_KEY=...
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
chatmodeltask-0.1.12.tar.gz
(13.6 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 chatmodeltask-0.1.12.tar.gz.
File metadata
- Download URL: chatmodeltask-0.1.12.tar.gz
- Upload date:
- Size: 13.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb514eeccc956b54c58d2e6d6db09295ae0f9a2c10113aac3f37ac61650c8ce2
|
|
| MD5 |
c3186726d209ff0926c1ff34b6edf484
|
|
| BLAKE2b-256 |
373dc76c0603f83c9edd1766bb5b2d0848bd7de0f9e5d787c29a9c43c6d5bd7e
|
File details
Details for the file chatmodeltask-0.1.12-py3-none-any.whl.
File metadata
- Download URL: chatmodeltask-0.1.12-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13de8bd3cd7846bb3c2edeb0b078f253920080d1c4107b5d92cb58984c3a7dfb
|
|
| MD5 |
e053a7dfd69fb589cc4c2ab34ffa44fa
|
|
| BLAKE2b-256 |
ea41c04e4269cc3795b92a94f16242cf9cb17b755ea91842115bffb145854832
|