mirror of
https://github.com/NCBM/plyngent.git
synced 2026-11-07 23:47:54 +08:00
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:
@@ -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
|
||||
"""
|
||||
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user