Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BudgetConfig ¶
type BudgetConfig struct {
MonthlyLimit float64 `json:"monthly_limit"` // Monthly spending limit in USD
AlertAt float64 `json:"alert_at"` // Alert when spending reaches this percentage (0-100)
Enabled bool `json:"enabled"` // Whether budget enforcement is enabled
}
BudgetConfig represents AI budget configuration
type UsageStats ¶
type UsageStats struct {
Month string `json:"month"`
TotalRequests int `json:"total_requests"`
OllamaRequests int `json:"ollama_requests"`
ClaudeRequests int `json:"claude_requests"`
OpenAIRequests int `json:"openai_requests"`
GroqRequests int `json:"groq_requests"`
OpenRouterRequests int `json:"openrouter_requests"`
TotalTokens int `json:"total_tokens"`
EstimatedCost float64 `json:"estimated_cost"`
}
UsageStats represents AI usage statistics
Click to show internal directories.
Click to hide internal directories.