Skip to main content

CLI tool for updating model profile data in LangChain integration packages.

Project description

🦜🪪 langchain-model-profiles

PyPI - Version PyPI - License PyPI - Downloads Twitter

[!WARNING] This package is currently in development and the API is subject to change.

CLI tool for updating model profile data in LangChain integration packages.

Quick Install

pip install langchain-model-profiles

🤔 What is this?

langchain-model-profiles is a CLI tool for fetching and updating model capability data from models.dev for use in LangChain integration packages.

LangChain chat models expose a .profile field that provides programmatic access to model capabilities such as context window sizes, supported modalities, tool calling, structured output, and more. This CLI tool helps maintainers keep that data up-to-date.

Data sources

This package is built on top of the excellent work by the models.dev project, an open source initiative that provides model capability data.

LangChain model profiles augment the data from models.dev with some additional fields. We intend to keep this aligned with the upstream project as it evolves.

📖 Documentation

For full documentation, see the API reference. For conceptual guides, tutorials, and examples on using LangChain, see the LangChain Docs. You can also chat with the docs using Chat LangChain.

Usage

Update model profile data for a specific provider:

langchain-profiles refresh --provider anthropic --data-dir ./langchain_anthropic/data

This downloads the latest model data from models.dev, merges it with any augmentations defined in profile_augmentations.toml, and generates a profiles.py file.

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

langchain_model_profiles-0.0.6.tar.gz (149.9 kB view details)

Uploaded Source

Built Distribution

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

langchain_model_profiles-0.0.6-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file langchain_model_profiles-0.0.6.tar.gz.

File metadata

  • Download URL: langchain_model_profiles-0.0.6.tar.gz
  • Upload date:
  • Size: 149.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for langchain_model_profiles-0.0.6.tar.gz
Algorithm Hash digest
SHA256 855b66ded9ec24d47c15216e5ae7981c9d140936959f9b9afd8f34e09f511258
MD5 ec8ff54bfcc25bc4bedb0ccbb087cb28
BLAKE2b-256 e9ca3e17f7e3b66a4fd2f67943c14edb41e49b61714792e14910976638f9bf93

See more details on using hashes here.

File details

Details for the file langchain_model_profiles-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_model_profiles-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 fa3d743b50464daf233d693826f824472f8231c66a0ad9e847e99169cfd3beca
MD5 6788025ff9751e54d8b0f0f589a57ca5
BLAKE2b-256 55bda9bcd50e85d2292134b4392864e706be01452e3010fa232719c222d6355c

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