dify/api/core
-LAN- 9b65e53c12
refactor(api): decouple llm quota layer from model instances
Introduce tenant-scoped quota helpers that accept provider and model identity directly.

Refactor the workflow quota layer and engine wiring to use public node and event model identity instead of reconstructing ModelInstance, and keep the legacy ModelInstance helpers as deprecated wrappers with focused test coverage.
2026-05-07 18:16:58 +08:00
..
agent chore(api): adapt Graphon 0.2.2 upgrade (#35377) 2026-04-18 11:16:24 +00:00
app refactor(api): decouple llm quota layer from model instances 2026-05-07 18:16:58 +08:00
base chore: reorg imports (#35308) 2026-04-16 08:50:02 +00:00
callback_handler refactor(api): tighten types for Tenant.custom_config_dict and MCPToolProvider.headers (#34698) 2026-04-08 01:36:42 +00:00
datasource chore(api): adapt Graphon 0.2.2 upgrade (#35377) 2026-04-18 11:16:24 +00:00
db fix(db): parameterize sessionmaker with Session (#30612) 2026-01-06 15:23:50 +08:00
entities chore(api): upgrade graphon to v0.3.0 2026-05-07 18:16:57 +08:00
errors chore: add ast-grep rule to convert Optional[T] to T | None (#25560) 2025-09-15 13:06:33 +08:00
extension refactor: replace bare dict with typed annotations in app_config/extension/provider (#35099) 2026-04-14 06:11:00 +00:00
external_data_tool refactor: replace bare dict with typed annotations in app_config/extension/provider (#35099) 2026-04-14 06:11:00 +00:00
helper chore(api): upgrade graphon to v0.3.0 2026-05-07 18:16:57 +08:00
llm_generator fix: suggest questions more max_tokens (#35533) 2026-04-24 08:02:30 +00:00
logging refactor(api): type _build_log_dict return with LogDict TypedDict (#34983) 2026-04-13 01:06:36 +00:00
mcp fix: prevent double /v1 in MCP server URL causing 404 authorization failure (#34596) 2026-04-20 02:42:59 +00:00
memory chore: reorg imports (#35308) 2026-04-16 08:50:02 +00:00
moderation chore: reorg imports (#35308) 2026-04-16 08:50:02 +00:00
ops refactor(api): move trace providers (#35144) 2026-04-17 07:53:35 +00:00
plugin fix(api): resolve graphon upgrade CI failures 2026-05-07 18:16:57 +08:00
prompt chore(api): adapt Graphon 0.2.2 upgrade (#35377) 2026-04-18 11:16:24 +00:00
rag fix(rag): use doc_id dedup key for any provider, not only dify (#35759) 2026-05-05 06:42:18 +00:00
repositories chore(api): adapt Graphon 0.2.2 upgrade (#35377) 2026-04-18 11:16:24 +00:00
schemas refactor: replace bare dict with dict[str, Any] in model provider service and core modules (#35122) 2026-04-14 09:18:30 +00:00
telemetry refactor: replace bare dict with dict[str, Any] in core provider services and misc modules (#35124) 2026-04-14 03:03:08 +00:00
tools fix(workflow): unblock plugin model selector tools on 1.14.0 (#35794) 2026-05-06 07:07:43 +00:00
trigger chore: reorg imports (#35308) 2026-04-16 08:50:02 +00:00
workflow refactor(api): decouple llm quota layer from model instances 2026-05-07 18:16:58 +08:00
__init__.py Fix basedpyright type errors (#25435) 2025-09-10 01:54:26 +08:00
hosting_configuration.py chore: reorg imports (#35308) 2026-04-16 08:50:02 +00:00
indexing_runner.py chore: reorg imports (#35308) 2026-04-16 08:50:02 +00:00
model_manager.py fix: sync 35528 (#35539) 2026-04-24 03:59:33 +00:00
provider_manager.py chore(api): upgrade graphon to v0.3.0 2026-05-07 18:16:57 +08:00