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.9.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.9.tar.gz.
File metadata
- Download URL: chatmodeltask-0.1.9.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 |
fd13f57f8c3634894cfbcf441c625193152c0a8e8124d0cf8a94a4b107e1809c
|
|
| MD5 |
837e743abc719327328bc8e74f0c0dd9
|
|
| BLAKE2b-256 |
91580583c74e28cedc3b2cc2fa8f4327a8c47a9e81491c199b01ab0a23b2c6f7
|
File details
Details for the file chatmodeltask-0.1.9-py3-none-any.whl.
File metadata
- Download URL: chatmodeltask-0.1.9-py3-none-any.whl
- Upload date:
- Size: 10.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 |
96d95c0b9f254c3e5b52de46b766c88c20b6cc5b400316b6b643fe02e1827627
|
|
| MD5 |
b20110be6725c3a76f4cffb22af03ce5
|
|
| BLAKE2b-256 |
e7a28dc98764cfe03f1b6c6991ff5e78ab535653d0525dbc4f4042ac693e3bac
|