Skip to content

feat: deprecated fron log query #147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 23, 2025

Conversation

zijiren233
Copy link
Member

@zijiren233 zijiren233 commented Apr 23, 2025

Sweep Summary Sweep

Removes the deprecated "from_log" query parameter and related functionality from dashboard endpoints to simplify the codebase.

  • Removed the from_log parameter from dashboard API endpoints in core/controller/dashboard.go to standardize data retrieval methods.
  • Deleted the TimestampTruncByHour field from the Log struct and removed related database indexes in core/model/log.go.
  • Removed functions that queried log data directly (getChartDataFromLog, GetModelCostRankFromLog) in favor of using summary tables.
  • Made getModelCostRank public by renaming it to GetModelCostRank in core/model/summary.go since the wrapper function was removed.

Ask Sweep AI questions about this PR

@zijiren233 zijiren233 closed this Apr 23, 2025
@zijiren233 zijiren233 reopened this Apr 23, 2025
@zijiren233 zijiren233 merged commit 3b1cd04 into labring:main Apr 23, 2025
37 checks passed
zijiren233 added a commit to zijiren233/aiproxy that referenced this pull request Apr 23, 2025
* feat: deprecated fron log query

* fix: ci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant