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.3.tar.gz
(8.4 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.3.tar.gz.
File metadata
- Download URL: chatmodeltask-0.1.3.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e444b0fdb2894119fc8221022bcab919d9ed2da5657051f72b70dc14c052e9e
|
|
| MD5 |
2330530a42df531c18686bc708004035
|
|
| BLAKE2b-256 |
8c11d5489e169759c3420a39eddc906542d02dd69684d22bf7718bb83687e2ed
|
File details
Details for the file chatmodeltask-0.1.3-py3-none-any.whl.
File metadata
- Download URL: chatmodeltask-0.1.3-py3-none-any.whl
- Upload date:
- Size: 10.6 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 |
4b92a912464ca7a72ed5d727c799e7941d166e0cc6175ea759474e2b14607b56
|
|
| MD5 |
75ccead66cdf84cbb66eda5815507217
|
|
| BLAKE2b-256 |
0183a9e81dc73894038e457f85b150e73c4bb604712291d133f758c6089a417d
|