core/config: default DeepSeek models v4-flash and v4-pro

When preset deepseek omits models, seed deepseek-v4-flash and
deepseek-v4-pro as text-capable entries for selection and docs.
This commit is contained in:
2026-07-15 13:57:29 +08:00
parent fb61f6bc32
commit 2052967824
7 changed files with 40 additions and 4 deletions
+5
View File
@@ -38,6 +38,11 @@ _MINIMAL_CONFIG = """\
#
# [providers.example.models]
# "gpt-4o-mini" = { text = true }
#
# [providers.deepseek]
# preset = "deepseek"
# access_key_or_token = "sk-..."
# # models default to deepseek-v4-flash and deepseek-v4-pro if omitted
"""
+9
View File
@@ -58,9 +58,18 @@ class AnthropicProvider(ProviderConfig, tag="anthropic"):
"""Anthropic API provider."""
def _default_deepseek_models() -> dict[str, ModelConfig]:
"""Current DeepSeek text catalog when TOML omits ``models``."""
return {
"deepseek-v4-flash": ModelConfig(text=True),
"deepseek-v4-pro": ModelConfig(text=True),
}
class DeepseekProvider(ProviderConfig, tag="deepseek"):
"""Deepseek API provider with optional extras (e.g. convention)."""
models: dict[str, ModelConfig] = field(default_factory=_default_deepseek_models)
extras: dict[str, str] = field(default_factory=dict)