fix(deepseek): align model capabilities with the official API (#6283)

* fix(deepseek): preserve vision for legacy Flash aliases

* fix(deepseek): expose validated model catalog capabilities

* fix(deepseek): retain explicit off control with live reasoning levels

* docs: clarify provider-specific model guidance
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-18 19:17:05 +08:00
1 parent aef8127aff
commit 0a8b18fa58
9 files changed
+406 -46

No files matched your search

+1 -1
View File
@@ -269,7 +269,7 @@ async def test_text_only_model_keeps_its_image_policy(image_peer, image_blocks,
url, requests, _ = image_peer
provider = OpenAICompatProvider(
api_key="fixture", api_base=f"{url}/v1", spec=find_by_name("deepseek"),
default_model="deepseek-v4-flash", extra_body={"tools": []},
default_model="deepseek-v4-pro", extra_body={"tools": []},
)
try:
result = await (provider.chat_stream if streaming else provider.chat)(_messages(image_blocks))