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.18.tar.gz
(14.5 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.18.tar.gz.
File metadata
- Download URL: chatmodeltask-0.1.18.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6923d884e2dcd5b5d0f259bfee74e106f80c35c02613c66ac18885f7ae45e4ff
|
|
| MD5 |
1873574fc7007d2928ec7fec1603e5ff
|
|
| BLAKE2b-256 |
4449d2e349760b568d787fb6cd26b29fbd5b0c05a6241e38cfd207ed009a370c
|
File details
Details for the file chatmodeltask-0.1.18-py3-none-any.whl.
File metadata
- Download URL: chatmodeltask-0.1.18-py3-none-any.whl
- Upload date:
- Size: 17.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 |
17e63b659e48fc88c2728f67b07377fd6dd31285418ae2f5e373621902f0f442
|
|
| MD5 |
067ffde7f97bf2f83fc5095dfc2c3ce9
|
|
| BLAKE2b-256 |
a9a903ae73abb48820c2ee8868f80514dca422f5f6e592cd7b2ca38e36947353
|