mirror of
https://github.com/langgenius/dify.git
synced 2026-09-05 00:31:19 +08:00
The legacy dataset console rate limits every mutating, download, and retrieval route and the dataset service API limits every request, while KnowledgeFS only covered uploads and query admission. Apply the knowledge rate limit to all space-scoped POST/PUT/PATCH/DELETE console routes, the document downloads, and research/query entrypoints (workspace-level source previews, staged-upload discards, the deprecated buffered query route, and the internal stream transport stay exempt). Extract the service API check into `check_knowledge_rate_limit` and call it from the KnowledgeFS profile helper so all service routes share the legacy per-workspace limit. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015zw5G5SX3HmVfnZof6YWAc |
||
|---|---|---|
| .. | ||
| common | ||
| console | ||
| files | ||
| inner_api | ||
| mcp | ||
| openapi | ||
| service_api | ||
| trigger | ||
| web | ||
| __init__.py | ||
| API_SCHEMA_GUIDE.md | ||
| fastopenapi.py | ||