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.19.tar.gz
(14.6 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.19.tar.gz.
File metadata
- Download URL: chatmodeltask-0.1.19.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5823e4a513e1d74fa80515b3a87c0cd67aab92d40dc8e55102510a73d7c14ec
|
|
| MD5 |
a82c7363f9e06059fb532c8e235377b2
|
|
| BLAKE2b-256 |
83a7dd39ae0416e83dad5624d6d949b12693672948ec7eb56e801b352c4b4cb4
|
File details
Details for the file chatmodeltask-0.1.19-py3-none-any.whl.
File metadata
- Download URL: chatmodeltask-0.1.19-py3-none-any.whl
- Upload date:
- Size: 17.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 |
3e7d796ca48c435a652d96ac17e6b5d5e953a869ee1b08144aa45956817fc462
|
|
| MD5 |
da38ae746d899442d38158ff7fdec13b
|
|
| BLAKE2b-256 |
d6015c66672fa24524f3412c64616cb490b21443db26d84538b034a073d51747
|