- Added Server Configuration settings page (backend + frontend) - Added .env config download/import API - Runtime config updates via UI - Support for all 3 themes (default, air, berry) - i18n support (zh/en)
28 lines
728 B
Go
28 lines
728 B
Go
package model
|
|
|
|
type Usage struct {
|
|
PromptTokens int `json:"prompt_tokens"`
|
|
CompletionTokens int `json:"completion_tokens"`
|
|
TotalTokens int `json:"total_tokens"`
|
|
|
|
CompletionTokensDetails *CompletionTokensDetails `json:"completion_tokens_details,omitempty"`
|
|
}
|
|
|
|
type CompletionTokensDetails struct {
|
|
ReasoningTokens int `json:"reasoning_tokens"`
|
|
AcceptedPredictionTokens int `json:"accepted_prediction_tokens"`
|
|
RejectedPredictionTokens int `json:"rejected_prediction_tokens"`
|
|
}
|
|
|
|
type Error struct {
|
|
Message string `json:"message"`
|
|
Type string `json:"type"`
|
|
Param string `json:"param"`
|
|
Code any `json:"code"`
|
|
}
|
|
|
|
type ErrorWithStatusCode struct {
|
|
Error
|
|
StatusCode int `json:"status_code"`
|
|
}
|