Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions lib/completions/report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ def user_breakdown
:user_id,
"users.username",
"users.uploaded_avatar_id",
"llm_models.input_cost",
"llm_models.output_cost",
"llm_models.cached_input_cost",
)
.order("usage_count DESC")
.limit(USER_LIMIT)
Expand All @@ -144,10 +141,7 @@ def feature_breakdown
base_query
.joins("LEFT JOIN llm_models ON llm_models.name = language_model")
.group(
:feature_name,
"llm_models.input_cost",
"llm_models.output_cost",
"llm_models.cached_input_cost",
:feature_name
)
.order("usage_count DESC")
.select(
Expand All @@ -167,10 +161,7 @@ def model_breakdown
base_query
.joins("LEFT JOIN llm_models ON llm_models.name = language_model")
.group(
:language_model,
"llm_models.input_cost",
"llm_models.output_cost",
"llm_models.cached_input_cost",
:language_model
)
.order("usage_count DESC")
.select(
Expand Down
Loading