Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions flocks/provider/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,23 @@
"cache_read": 1.3,
"currency": "CNY"
}
},
"deepseek-v4-flash": {
"name": "deepseek-v4-flash",
"family": "deepseek-v4",
"capabilities": {
"supports_tools": true,
"supports_streaming": true
},
"limits": {
"context_window": 200000,
"max_output_tokens": 128000
},
"pricing": {
"input": 1.0,
"output": 2.0,
"currency": "CNY"
}
}
}
},
Expand Down Expand Up @@ -335,6 +352,23 @@
"output": 10.0,
"currency": "CNY"
}
},
"deepseek-v4-flash": {
"name": "deepseek-v4-flash",
"family": "deepseek-v4",
"capabilities": {
"supports_tools": true,
"supports_streaming": true
},
"limits": {
"context_window": 200000,
"max_output_tokens": 128000
},
"pricing": {
"input": 1.0,
"output": 2.0,
"currency": "CNY"
}
}
}
},
Expand Down
16 changes: 16 additions & 0 deletions tests/provider/test_chinese_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,19 @@ def test_threatbook_cn_llm_catalog(self):
"qwen3.6-plus",
"qwen3-max",
"kimi-k2.6",
"deepseek-v4-flash",
}

qwen = next(m for m in models if m.id == "qwen3.6-plus")
assert qwen.capabilities.supports_vision is True

flash_cn = next(m for m in models if m.id == "deepseek-v4-flash")
assert flash_cn.pricing.input == 1.0
assert flash_cn.pricing.output == 2.0
assert flash_cn.pricing.currency == "CNY"
assert flash_cn.limits.context_window == 200000
assert flash_cn.limits.max_output_tokens == 128000

kimi = next(m for m in models if m.id == "kimi-k2.6")
assert kimi.capabilities.supports_vision is True
assert kimi.capabilities.supports_reasoning is True
Expand All @@ -267,11 +275,19 @@ def test_threatbook_io_llm_catalog(self):
"GLM-5",
"qwen3.6-plus",
"qwen3-max",
"deepseek-v4-flash",
}

qwen = next(m for m in models if m.id == "qwen3.6-plus")
assert qwen.capabilities.supports_vision is True

flash_io = next(m for m in models if m.id == "deepseek-v4-flash")
assert flash_io.pricing.input == 1.0
assert flash_io.pricing.output == 2.0
assert flash_io.pricing.currency == "CNY"
assert flash_io.limits.context_window == 200000
assert flash_io.limits.max_output_tokens == 128000

m27 = next(m for m in models if m.id == "minimax-m2.7")
assert m27.capabilities.interleaved["field"] == "reasoning_details"
assert m27.pricing.currency == "CNY"
Expand Down