Skip to main content

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


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.16.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chatmodeltask-0.1.16-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file chatmodeltask-0.1.16.tar.gz.

File metadata

  • Download URL: chatmodeltask-0.1.16.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for chatmodeltask-0.1.16.tar.gz
Algorithm Hash digest
SHA256 cc7182eb37b3ea0eb62978e427082d629dc19044b096a0b456e6736e27b9dbe1
MD5 7ca435e1bca6d441a49a4428bb4f0838
BLAKE2b-256 eca187c72328060b1ea1a4a8cd17dc729bef35d01bae4a0da157e3ba93893aa6

See more details on using hashes here.

File details

Details for the file chatmodeltask-0.1.16-py3-none-any.whl.

File metadata

  • Download URL: chatmodeltask-0.1.16-py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for chatmodeltask-0.1.16-py3-none-any.whl
Algorithm Hash digest
SHA256 517d89b42c4616d4cdea2a377a2202beae0270e4ffaf9fd991fcc098fff39115
MD5 e3b90d5211f4c294b0073b5deb6ea2cc
BLAKE2b-256 e5a1b30bb33128b4479e11a2499bf6de5e8319788c60b48da5ca5187ac8b4a21

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page