Home / File/ _profiles.py — langchain Source File

_profiles.py — langchain Source File

Architecture documentation for _profiles.py, a python file in the langchain codebase. 1 imports, 0 dependents.

File python 1 imports

Entity Profile

Dependency Diagram

graph LR
  631a120d_b90e_2b10_43e8_d14ac3d3bbf8["_profiles.py"]
  feec1ec4_6917_867b_d228_b134d0ff8099["typing"]
  631a120d_b90e_2b10_43e8_d14ac3d3bbf8 --> feec1ec4_6917_867b_d228_b134d0ff8099
  style 631a120d_b90e_2b10_43e8_d14ac3d3bbf8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"""Auto-generated model profiles.

DO NOT EDIT THIS FILE MANUALLY.
This file is generated by the langchain-profiles CLI tool.

It contains data derived from the models.dev project.

Source: https://github.com/sst/models.dev
License: MIT License

To update these data, refer to the instructions here:

https://docs.langchain.com/oss/python/langchain/models#updating-or-overwriting-profile-data
"""

from typing import Any

_PROFILES: dict[str, dict[str, Any]] = {
    "gpt-4.1-nano": {
        "max_input_tokens": 1047576,
        "max_output_tokens": 32768,
        "text_inputs": True,
        "image_inputs": True,
        "audio_inputs": False,
        "video_inputs": False,
        "text_outputs": True,
        "image_outputs": False,
        "audio_outputs": False,
        "video_outputs": False,
        "reasoning_output": False,
        "tool_calling": True,
        "structured_output": True,
        "image_url_inputs": True,
        "pdf_inputs": True,
        "pdf_tool_message": True,
        "image_tool_message": True,
        "tool_choice": True,
    },
    "text-embedding-3-small": {
        "max_input_tokens": 8191,
        "max_output_tokens": 1536,
        "text_inputs": True,
        "image_inputs": False,
        "audio_inputs": False,
        "video_inputs": False,
        "text_outputs": True,
        "image_outputs": False,
        "audio_outputs": False,
        "video_outputs": False,
        "reasoning_output": False,
        "tool_calling": False,
        "image_url_inputs": True,
        "pdf_inputs": True,
        "pdf_tool_message": True,
        "image_tool_message": True,
        "tool_choice": True,
    },
    "gpt-4": {
        "max_input_tokens": 8192,
        "max_output_tokens": 8192,
// ... (773 more lines)

Dependencies

  • typing

Frequently Asked Questions

What does _profiles.py do?
_profiles.py is a source file in the langchain codebase, written in python.
What does _profiles.py depend on?
_profiles.py imports 1 module(s): typing.
Where is _profiles.py in the architecture?
_profiles.py is located at libs/partners/openai/langchain_openai/data/_profiles.py (directory: libs/partners/openai/langchain_openai/data).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free