Integrate BACKBEAT SDK and resolve KACHING license validation
Major integrations and fixes: - Added BACKBEAT SDK integration for P2P operation timing - Implemented beat-aware status tracking for distributed operations - Added Docker secrets support for secure license management - Resolved KACHING license validation via HTTPS/TLS - Updated docker-compose configuration for clean stack deployment - Disabled rollback policies to prevent deployment failures - Added license credential storage (CHORUS-DEV-MULTI-001) Technical improvements: - BACKBEAT P2P operation tracking with phase management - Enhanced configuration system with file-based secrets - Improved error handling for license validation - Clean separation of KACHING and CHORUS deployment stacks 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
26
vendor/github.com/sashabaranov/go-openai/common.go
generated
vendored
Normal file
26
vendor/github.com/sashabaranov/go-openai/common.go
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
package openai
|
||||
|
||||
// common.go defines common types used throughout the OpenAI API.
|
||||
|
||||
// Usage Represents the total token usage per request to OpenAI.
|
||||
type Usage struct {
|
||||
PromptTokens int `json:"prompt_tokens"`
|
||||
CompletionTokens int `json:"completion_tokens"`
|
||||
TotalTokens int `json:"total_tokens"`
|
||||
PromptTokensDetails *PromptTokensDetails `json:"prompt_tokens_details"`
|
||||
CompletionTokensDetails *CompletionTokensDetails `json:"completion_tokens_details"`
|
||||
}
|
||||
|
||||
// CompletionTokensDetails Breakdown of tokens used in a completion.
|
||||
type CompletionTokensDetails struct {
|
||||
AudioTokens int `json:"audio_tokens"`
|
||||
ReasoningTokens int `json:"reasoning_tokens"`
|
||||
AcceptedPredictionTokens int `json:"accepted_prediction_tokens"`
|
||||
RejectedPredictionTokens int `json:"rejected_prediction_tokens"`
|
||||
}
|
||||
|
||||
// PromptTokensDetails Breakdown of tokens used in the prompt.
|
||||
type PromptTokensDetails struct {
|
||||
AudioTokens int `json:"audio_tokens"`
|
||||
CachedTokens int `json:"cached_tokens"`
|
||||
}
|
||||
Reference in New Issue
Block a user