Fix agentbot cannot upload file (#828) (#16946)

This commit is contained in:
Wang Qi
2026-07-15 17:30:10 +08:00
committed by GitHub
parent 4391e03886
commit 77d35a3387

View File

@@ -846,6 +846,7 @@ async def create_agent(tenant_id):
@manager.route("/agents/<agent_id>/upload", methods=["POST"]) # noqa: F821
@login_required
@login_required(auth_types=[AUTH_JWT, AUTH_API, AUTH_BETA])
@add_tenant_id_to_kwargs
@_require_canvas_access_async
async def upload_agent_file(agent_id, tenant_id):