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.

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.5.tar.gz (123.5 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.5-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for langchain_model_profiles-0.0.5.tar.gz
Algorithm Hash digest
SHA256 21a4dfaa04e2200a2f52b00312bdfc62236579e396ebde2d483ca02127cc4f5c
MD5 9fd9adb3c415af379eb11f740c906217
BLAKE2b-256 4396359105e3fb0161b5ba2e23daccc9c8b1c7cfe1dff1a05724e52a176ef3d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_model_profiles-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f90826c70904783ffc0450835f5dcd419d4d0d4633c4efa5bb92d49296e85524
MD5 fe1a95d399f729e3498a0aa9dbe22199
BLAKE2b-256 6a7f1a537c74c6ed8794c8f6ebd2fadbeed48a2911acee14efc636791a1ecb08

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