fix(providers): route current DeepSeek Flash alias to Responses

This commit is contained in:
chengyongru authored and chengyongru committed 2026-10-10 01:33:02 +08:00
1 parent 763ae9c2ae
commit 359bfeb6c3
3 files changed
+5 -2

No files matched your search

+1
View File
@@ -710,6 +710,7 @@ PROVIDERS: tuple[ProviderSpec, ...] = (
thinking_style="thinking_type",
responses=ResponsesCapabilities(
models=(
"deepseek-flash",
"deepseek-v4-flash",
"deepseek-v4-pro",
"deepseek-v4-flash-vision-exp",
@@ -121,6 +121,8 @@ async def bind_transport():
("openai", "gpt-6-luna", "https://tenant.test/v1", "high"),
("openai", "gpt-4o", "https://api.openai.com/v1", "high"),
("opencode_go", "opencode-go/muse-spark-1.3-contributor", "https://opencode.ai/zen/go/v1", None),
("deepseek", "deepseek-flash", "https://api.deepseek.com/v1", None),
("deepseek", "deepseek/deepseek-flash", "https://api.deepseek.com/v1", None),
])
async def test_automatic_preview_matches_actual_request(
bind_transport, stream, provider_name, model, api_base, effort,
@@ -37,7 +37,7 @@ def test_responses_api_available_by_default(provider):
@pytest.mark.parametrize(
"model",
["deepseek-v4-flash", "deepseek-v4-pro", "deepseek-v4-flash-vision-exp"],
["deepseek-flash", "deepseek-v4-flash", "deepseek-v4-pro", "deepseek-v4-flash-vision-exp"],
)
def test_deepseek_v4_models_use_responses_by_model(provider, model):
provider._spec = find_by_name("deepseek")
@@ -50,7 +50,7 @@ def test_deepseek_v4_models_use_responses_by_model(provider, model):
@pytest.mark.parametrize(
"model",
["deepseek-v4-flash", "deepseek-v4-pro", "deepseek-v4-flash-vision-exp"],
["deepseek-flash", "deepseek-v4-flash", "deepseek-v4-pro", "deepseek-v4-flash-vision-exp"],
)
def test_deepseek_v4_models_match_provider_prefixed_model(provider, model):
provider._spec = find_by_name("deepseek")