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=...
Release files for chatmodeltask 0.1.23
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chatmodeltask-0.1.23.tar.gz | 15.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chatmodeltask-0.1.23-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:37.9 kB
Release files / chatmodeltask-0.1.23.tar.gz
| Download URL | chatmodeltask-0.1.23.tar.gz |
|---|---|
| Size | 15.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39d0a108a17c608d1f9437ff9a2e7fa9f9852eeeb769a05acb2a53eb7f7c956e
|
|
BLAKE2b-256 checksum How to use checksums |
276c201ce6e0d3db0f323ec622b423754ea4a6668857863cc434fcf3437975a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / chatmodeltask-0.1.23-py3-none-any.whl
| Download URL | chatmodeltask-0.1.23-py3-none-any.whl |
|---|---|
| Size | 22.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f0f7b9d492fe952737ac6824be20bd76a9e259482299235934a2d3cfbf29b774
|
|
BLAKE2b-256 checksum How to use checksums |
6607f33edf6d63f7196113dc49a768973056f98a54936de15e99425144c06b69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|