Skip to main content

Centralized reference of LLM capabilities.

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.

Centralized reference of LLM capabilities for LangChain chat models.

Overview

langchain-model-profiles enables programmatic access to model capabilities through a .profile property on LangChain chat models.

This allows you to query model-specific features such as context window sizes, supported input/output modalities, structured output support, tool calling capabilities, and more.

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.

This package augments the data from models.dev with some additional fields. We intend to keep this aligned with the upstream project as it evolves.

Installation

pip install "langchain[model-profiles]"

Or with uv:

uv add "langchain[model-profiles]"

Usage

Access model capabilities through the .profile property on any LangChain chat model:

# pip install "langchain[openai]"

from langchain.chat_models import init_chat_model

model = init_chat_model("openai:gpt-5")
profile = model.profile

# Check specific capabilities
if profile.get("structured_output"):
    print(f"This model supports a dedicated structured output feature.")

if profile.get("max_input_tokens"):
    print(f"Max input tokens: {profile.get('max_input_tokens')}")

if profile.get("..."):
    ...

Available fields

See ModelProfile in model_profile.py for the full list of available fields and their descriptions.

License

MIT

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.2.tar.gz (145.4 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.2-py3-none-any.whl (30.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_model_profiles-0.0.2.tar.gz
  • Upload date:
  • Size: 145.4 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.2.tar.gz
Algorithm Hash digest
SHA256 3ed302e35ffa5fe0b9e3480d8e7c7ea98131bf4ebf3568e800e97b047159d58a
MD5 df3d1966667ede13af1cb4252be8dff2
BLAKE2b-256 9067b38584d603a20fa286bf5939ddc54ba4ca981269a2d68fd56911a9c01ae1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_model_profiles-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c2db038573de419195d1fd6aa54d9a8f3ec6b951619950b755ffbc59cdc9f666
MD5 f522ba372a76c5b5ebaaece14e8b10fa
BLAKE2b-256 6dfd3cc2ea700d0331e0edb066789b74498262d405a45816290e890337796cee

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