mirror of
https://github.com/hwchase17/langchain.git
synced 2026-05-18 21:44:53 +00:00
Extract additional fields from models.dev into `_model_data_to_profile`: `name`, `status`, `release_date`, `last_updated`, `open_weights`, `attachment`, `temperature` Move the model profile refresh logic from an inline bash script in the GitHub Actions workflow into a `make refresh-profiles` target in `libs/model-profiles/Makefile`. This makes it runnable locally with a single command and keeps the provider map in one place instead of duplicated between CI and developer docs.
100 lines
2.9 KiB
Python
100 lines
2.9 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": {
|
|
"name": "Sonar",
|
|
"release_date": "2024-01-01",
|
|
"last_updated": "2025-09-01",
|
|
"open_weights": False,
|
|
"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,
|
|
"attachment": False,
|
|
"temperature": True,
|
|
},
|
|
"sonar-deep-research": {
|
|
"name": "Perplexity Sonar Deep Research",
|
|
"release_date": "2025-02-01",
|
|
"last_updated": "2025-09-01",
|
|
"open_weights": False,
|
|
"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,
|
|
"attachment": False,
|
|
"temperature": False,
|
|
},
|
|
"sonar-pro": {
|
|
"name": "Sonar Pro",
|
|
"release_date": "2024-01-01",
|
|
"last_updated": "2025-09-01",
|
|
"open_weights": False,
|
|
"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,
|
|
"attachment": True,
|
|
"temperature": True,
|
|
},
|
|
"sonar-reasoning-pro": {
|
|
"name": "Sonar Reasoning Pro",
|
|
"release_date": "2024-01-01",
|
|
"last_updated": "2025-09-01",
|
|
"open_weights": False,
|
|
"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,
|
|
"attachment": True,
|
|
"temperature": True,
|
|
},
|
|
}
|