mirror of
https://github.com/hwchase17/langchain.git
synced 2026-03-18 02:53:16 +00:00
- Sort model profiles alphabetically by model ID (the top-level `_PROFILES` dictionary keys, e.g. `claude-3-5-haiku-20241022`, `gpt-4o-mini`) before writing `_profiles.py`, so that regenerating profiles only shows actual data changes in diffs — not random reordering from the models.dev API response order - Regenerate all 10 partner profile files with the new sorted ordering
76 lines
2.1 KiB
Python
76 lines
2.1 KiB
Python
"""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]] = {
|
|
"sonar": {
|
|
"max_input_tokens": 128000,
|
|
"max_output_tokens": 4096,
|
|
"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,
|
|
},
|
|
"sonar-deep-research": {
|
|
"max_input_tokens": 128000,
|
|
"max_output_tokens": 8192,
|
|
"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": True,
|
|
"tool_calling": False,
|
|
},
|
|
"sonar-pro": {
|
|
"max_input_tokens": 200000,
|
|
"max_output_tokens": 8192,
|
|
"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": False,
|
|
},
|
|
"sonar-reasoning-pro": {
|
|
"max_input_tokens": 128000,
|
|
"max_output_tokens": 4096,
|
|
"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": True,
|
|
"tool_calling": False,
|
|
},
|
|
}
|