fix(model-profiles): sort generated profiles by model ID for stable diffs (#35344)

- 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
This commit is contained in:
Mason Daugherty
2026-02-19 23:11:22 -05:00
committed by GitHub
parent 8aa7a3f07a
commit 70192690b1
12 changed files with 3243 additions and 3156 deletions

View File

@@ -16,20 +16,6 @@ https://docs.langchain.com/oss/python/langchain/models#updating-or-overwriting-p
from typing import Any
_PROFILES: dict[str, dict[str, Any]] = {
"deepseek-reasoner": {
"max_input_tokens": 128000,
"max_output_tokens": 128000,
"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,
},
"deepseek-chat": {
"max_input_tokens": 128000,
"max_output_tokens": 8192,
@@ -44,4 +30,18 @@ _PROFILES: dict[str, dict[str, Any]] = {
"reasoning_output": False,
"tool_calling": True,
},
"deepseek-reasoner": {
"max_input_tokens": 128000,
"max_output_tokens": 128000,
"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,
},
}