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.1.tar.gz (144.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.1-py3-none-any.whl (28.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langchain_model_profiles-0.0.1.tar.gz
  • Upload date:
  • Size: 144.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.1.tar.gz
Algorithm Hash digest
SHA256 75b0fc72becf600b7b704c82bd4152f4aad47b0a33064ecb6378c7679713c730
MD5 a8886cd4097c214f6967a5a4b1a675d6
BLAKE2b-256 34053dfd84926635662176739bd6317ad1048fe1e7daca6e55241f49893cbb2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for langchain_model_profiles-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 022641b59c4e0f0e6709651c009a6628df67a2f4e5590b37bf5de88ce40e854c
MD5 401840f719b08054906062ae1a5fc39f
BLAKE2b-256 4d163ca366cb028b110f0f5e47458ee9d1e34e36de287aea8a2ad19dbbc03a16

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