Merge branch 'release/v0.2.6' into develop
* release/v0.2.6: fix(web): ontology class default tag bugfix fix(version): Version 0.2.6 Release Notes fix(web): chat file delete bugfix feat: support model load balancing and add message_id to API responses feat: support model load balancing and add message_id to API responses [changes] Work space isolation [add] Recently, memory activities have adopted Redis caching. [changes] Work space isolation [add] Recently, memory activities have adopted Redis caching. fix(web): upload add loading [changes] The enumeration check has been changed to a string. [changes] The enumeration check has been changed to a string. feat(web): http-request add headers variable fix(workflow): ensure file messages are written to messages in non-stream mode fix(workflow): fix Dify compatibility issues [changes] Memory write completion active failure interest cache feat(workflow): support multimodal context [changes] AI review and correction of code [add] Semantic pruning is unified with the ontology engineering scenario. feat(chat): add message_id field to chat API response
This commit is contained in:
@@ -544,10 +544,11 @@ async def clear_hot_memory_tags_cache(
|
||||
@router.get("/analytics/recent_activity_stats", response_model=ApiResponse)
|
||||
async def get_recent_activity_stats_api(
|
||||
current_user: User = Depends(get_current_user),
|
||||
) -> dict:
|
||||
api_logger.info("Recent activity stats requested")
|
||||
) -> dict:
|
||||
workspace_id = str(current_user.current_workspace_id) if current_user.current_workspace_id else None
|
||||
api_logger.info(f"Recent activity stats requested: workspace_id={workspace_id}")
|
||||
try:
|
||||
result = await analytics_recent_activity_stats()
|
||||
result = await analytics_recent_activity_stats(workspace_id=workspace_id)
|
||||
return success(data=result, msg="查询成功")
|
||||
except Exception as e:
|
||||
api_logger.error(f"Recent activity stats failed: {str(e)}")
|
||||
|
||||
Reference in New Issue
Block a user