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.8.tar.gz (8.4 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.8-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chatmodeltask-0.1.8.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

Hashes for chatmodeltask-0.1.8.tar.gz
Algorithm Hash digest
SHA256 e4059dd1950d7284821a422cafd73ee8e48680ecccdf06edc8f4cb475cf7585d
MD5 ff378239c7ab753ee2f52fbf5fb9f7b5
BLAKE2b-256 296826e5b1dead2dfb6579d2f2a2b92c40cf74486e1b8161771ce16b33fa5c28

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chatmodeltask-0.1.8-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

Hashes for chatmodeltask-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 97d63dc7ace451b4cfe2f7fc10963feeb1cbcc5e0096a8df014dff274ee471a6
MD5 c7ad4ed515ce6e57a3e784b19add6f08
BLAKE2b-256 35b344444169e4ed325d80938551bbf397d38c860938b37c5b72dbf8f82543b5

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