- Refactored AI gateway to utilize new cost management structures for usage tracking. - Replaced deprecated token extraction methods with a unified cost parsing approach. - Enhanced usage fallback mechanisms and introduced detailed usage metrics in responses. - Added new metering functionality to record AI usage and costs effectively. - Updated tests to reflect changes in usage parsing and cost calculations. - Introduced new API endpoints for retrieving AI usage summaries and pricing information.
10 lines
482 B
SQL
10 lines
482 B
SQL
DROP TABLE IF EXISTS ai_cost_policies;
|
|
DROP TABLE IF EXISTS ai_org_usage_monthly;
|
|
DROP TABLE IF EXISTS ai_org_usage_daily;
|
|
ALTER TABLE ai_usage_monthly DROP COLUMN IF EXISTS cost_micro_eur_org;
|
|
ALTER TABLE ai_usage_monthly DROP COLUMN IF EXISTS cost_micro_eur_user;
|
|
ALTER TABLE ai_usage_daily DROP COLUMN IF EXISTS cost_micro_eur_org;
|
|
ALTER TABLE ai_usage_daily DROP COLUMN IF EXISTS cost_micro_eur_user;
|
|
DROP TABLE IF EXISTS ai_usage_events;
|
|
DROP TABLE IF EXISTS ai_model_pricing;
|