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.20.tar.gz
(15.1 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.20.tar.gz.
File metadata
- Download URL: chatmodeltask-0.1.20.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cbd1854f7a613b51d2b47366b68d6463d3f0159a52a4bd80af438d262467ba9
|
|
| MD5 |
0abf74fece88e254dce6f6faeaf59d23
|
|
| BLAKE2b-256 |
5d2fcdbf103e5da74fd5c36151c1cbcb3a050d7594bdb76de0ed8d1e53a3b776
|
File details
Details for the file chatmodeltask-0.1.20-py3-none-any.whl.
File metadata
- Download URL: chatmodeltask-0.1.20-py3-none-any.whl
- Upload date:
- Size: 22.0 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 |
3d7ace0ec40558360fbcfeb76c560dfccce44edbd18a9b32a3f41f7cd62b2b60
|
|
| MD5 |
5b40a98d34ff253e9d74630257a5c67a
|
|
| BLAKE2b-256 |
75ca3accd8140b6120266dcfd47f4d001f47718421aef8a24bcb613f0c4d83f8
|