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.22.tar.gz (15.6 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.22-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chatmodeltask-0.1.22.tar.gz
  • Upload date:
  • Size: 15.6 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.22.tar.gz
Algorithm Hash digest
SHA256 dbc65e46da122dc37c2df8a420d75e932f68e81ac56ba7c9e6d56d08cdcd271e
MD5 5a96d47225c50b299609e9549d9e0168
BLAKE2b-256 87843adc2acb3251a33d329722003e2571b3477b76664263ec272d28106f9ffc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chatmodeltask-0.1.22-py3-none-any.whl
  • Upload date:
  • Size: 22.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.22-py3-none-any.whl
Algorithm Hash digest
SHA256 de09180669984c6e908f2017495e17568725bcaee58c124e5c553d13b9a650ee
MD5 4f53aba5f433329956302ccd09380345
BLAKE2b-256 b8012a4a81cf734d75e5effde0e2b584a6416472a6d4accbb7a0d8c297c74699

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