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
  23823bb5_979b_49b5_22c8_8614473d7958["_profiles.py"]
  8e2034b7_ceb8_963f_29fc_2ea6b50ef9b3["typing"]
  23823bb5_979b_49b5_22c8_8614473d7958 --> 8e2034b7_ceb8_963f_29fc_2ea6b50ef9b3
  style 23823bb5_979b_49b5_22c8_8614473d7958 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]] = {
    "grok-4-fast-non-reasoning": {
        "max_input_tokens": 2000000,
        "max_output_tokens": 30000,
        "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,
    },
    "grok-3-fast": {
        "max_input_tokens": 131072,
        "max_output_tokens": 8192,
        "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": True,
    },
    "grok-4": {
        "max_input_tokens": 256000,
        "max_output_tokens": 64000,
        "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": True,
        "tool_calling": True,
    },
// ... (268 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/xai/langchain_xai/data/_profiles.py (directory: libs/partners/xai/langchain_xai/data).

Analyze Your Own Codebase

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

Try Supermodel Free