5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# File 'app/controllers/llm_cost_tracker/data_quality_controller.rb', line 5
def index
scope = Dashboard::Filter.call(params: params)
@stats = Dashboard::DataQuality.call(scope: scope)
@summary = Dashboard::DataQuality.summary(@stats)
@usage_rows = Dashboard::DataQuality.usage_rows(
@stats,
component_costs: Dashboard::DataQuality.component_costs(scope)
)
@hidden_output_summary = Dashboard::DataQuality.hidden_output_summary(@stats)
@unknown_pricing_by_model = Dashboard::DataQuality.unknown_pricing_by_model(
scope,
total_calls: @summary.total
)
@service_charge_rows = Dashboard::DataQuality.service_charge_rows(scope).to_a
end
|