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.21.tar.gz
(15.3 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.21.tar.gz.
File metadata
- Download URL: chatmodeltask-0.1.21.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e042307167576a9f679533fa115d2b0f62a30c28ee631e43999891be7ad261e0
|
|
| MD5 |
6712c3c5ebb560a771df25a7058bc736
|
|
| BLAKE2b-256 |
eef199d2ab8113f315cdb597246d5980dfbfcf6b667524d6d68d0ac412de2a3c
|
File details
Details for the file chatmodeltask-0.1.21-py3-none-any.whl.
File metadata
- Download URL: chatmodeltask-0.1.21-py3-none-any.whl
- Upload date:
- Size: 22.2 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 |
c1b22a227f92423afa71b0bde1644bbcbaa7ca3cf52db6db129eef84be21adf9
|
|
| MD5 |
a1e0be6cd10aca7fc57e294b06cde8f8
|
|
| BLAKE2b-256 |
32a2454d2a212331e55c1f7da215aa0512ec203ada1a2dcc6267d594272f05b0
|