fix(tools): correct DeepSeek Search rate-limit guidance
Remove stale quota details from the 429 diagnostic and configuration guide. Point users to DeepSeek for current account limits. Co-authored-by: chengyongru <61816729+chengyongru@users.noreply.github.com>
This commit is contained in:
1 parent
7eacc789d4
commit
29d0023fca
3 files changed
+8
-3
No files matched your search
@@ -2117,7 +2117,7 @@ AnySearch works out of the box with no key, via its anonymous quota (lower rate
|
|||||||
|
|
||||||
Create a key at [platform.deepseek.com](https://platform.deepseek.com). Set `tools.web.search.apiKey` directly or with a `${VAR_NAME}` reference. Missing credentials cause a configuration error, with no provider fallback.
|
Create a key at [platform.deepseek.com](https://platform.deepseek.com). Set `tools.web.search.apiKey` directly or with a `${VAR_NAME}` reference. Missing credentials cause a configuration error, with no provider fallback.
|
||||||
|
|
||||||
Queries are limited to 128 Unicode characters after trimming whitespace; longer queries are rejected. Pricing is ¥5 per 1,000 successful requests, with an account-wide limit of 5 QPS across API keys. See the [DeepSeek Search API documentation](https://api-docs.deepseek.com/zh-cn/guides/search/) for search syntax and billing details.
|
Queries are limited to 128 Unicode characters after trimming whitespace; longer queries are rejected. See the [DeepSeek Search API documentation](https://api-docs.deepseek.com/zh-cn/guides/search/) for search syntax, pricing, and account-wide rate limits.
|
||||||
|
|
||||||
#### `tools.web.search`
|
#### `tools.web.search`
|
||||||
|
|
||||||
|
|||||||
@@ -972,8 +972,8 @@ class WebSearchTool(Tool):
|
|||||||
)
|
)
|
||||||
if r.status_code == 429:
|
if r.status_code == 429:
|
||||||
return ToolResult.error(
|
return ToolResult.error(
|
||||||
"Error: DeepSeek search rate limited after retry. The account "
|
"Error: DeepSeek search rate limited after retry. "
|
||||||
"limit is 5 QPS; retry later or reduce the frequency of concurrent web_search calls."
|
"Retry later or reduce the frequency of concurrent web_search calls."
|
||||||
)
|
)
|
||||||
if _deepseek_is_retryable(r.status_code):
|
if _deepseek_is_retryable(r.status_code):
|
||||||
return ToolResult.error(
|
return ToolResult.error(
|
||||||
|
|||||||
@@ -733,6 +733,11 @@ async def test_deepseek_search_gives_up_after_retry_budget(
|
|||||||
assert is_tool_error_result(result)
|
assert is_tool_error_result(result)
|
||||||
assert expected_text in result
|
assert expected_text in result
|
||||||
assert "after retry" in result
|
assert "after retry" in result
|
||||||
|
if status == 429:
|
||||||
|
assert result == (
|
||||||
|
"Error: DeepSeek search rate limited after retry. "
|
||||||
|
"Retry later or reduce the frequency of concurrent web_search calls."
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
|
|||||||
Reference in new issue
Block a user