Documentation ¶
Index ¶
Constants ¶
View Source
const (
API_KEY_ENV = "OPENAI_API_KEY"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Engine ¶
func ListEngines ¶
type ListEnginesResponse ¶
type ListEnginesResponse struct {
Data []Engine `json:"data"`
}
type PromptRequest ¶
type QuotaUsage ¶
type QuotaUsage struct {
Used float64
}
QuotaUsage represents the OpenAI API usage quota information
func GetOpenAIQuotaUsage ¶
func GetOpenAIQuotaUsage() (QuotaUsage, error)
GetOpenAIQuotaUsage retrieves the current usage quota for the OpenAI API using the provided API key and returns the quota usage information as a struct
Click to show internal directories.
Click to hide internal directories.