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.1.tar.gz (7.7 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.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chatmodeltask-0.1.1.tar.gz
  • Upload date:
  • Size: 7.7 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.1.tar.gz
Algorithm Hash digest
SHA256 5ce123754576c3ade6616e8ff44f1175d36fa77f30fa06371260ecdbaa2fdbe0
MD5 fcb533345ae0ac5442a9560d96a96530
BLAKE2b-256 c62a52a79c6a21d6ff7d254019189c54af957c50e9e05f9b8bd1f87b1cde3686

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chatmodeltask-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 22da4544565d71d0620c08ea6b8398d889d056cb23c78381a1507ec90edb7a1c
MD5 fc806778519bb1c08b771777c66276e5
BLAKE2b-256 d9e460b39acedb2f5b2d5db305f506d0868510c79d1df5ec18bb74293568ca6b

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