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.14.tar.gz
(14.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.14.tar.gz.
File metadata
- Download URL: chatmodeltask-0.1.14.tar.gz
- Upload date:
- Size: 14.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 |
905f28f516b7f3cf8b77811cf9dcf2017ddb23aed5efc1ebe94cae41a8d061ad
|
|
| MD5 |
6b0edc9276c7d7ba14be3b60e7055f5a
|
|
| BLAKE2b-256 |
5b9807aff87282aa46d433fb8c4cf10bbb1389de63fc84a35ad817f9ed794680
|
File details
Details for the file chatmodeltask-0.1.14-py3-none-any.whl.
File metadata
- Download URL: chatmodeltask-0.1.14-py3-none-any.whl
- Upload date:
- Size: 17.3 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 |
9d5d9cdced37eae55bf3c2dd83dd39e5362053d690d17407bc5bd296723213a6
|
|
| MD5 |
a34274c1ff4e8f69c8171fb4d3bd0d50
|
|
| BLAKE2b-256 |
06617217e01e8373034f788cd5ef08abf93a51ae7019336639a6b8ca893a7b0b
|