- 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. |
||
|---|---|---|
| .. | ||
| cost | ||
| chat_sync.go | ||
| gateway_messages_test.go | ||
| gateway_messages.go | ||
| gateway_test.go | ||
| gateway.go | ||
| metering.go | ||
| models_test.go | ||
| models.go | ||
| openwebui_profile.go | ||
| providers.go | ||
| quota_test.go | ||
| quota.go | ||
| types.go | ||
| users.go | ||