Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
ID string `json:"id"`
Name string `json:"name"`
Pricing struct {
Input float64 `json:"input"`
Output float64 `json:"output"`
} `json:"pricing"`
}
Model 表示一个可用模型
type QuotaWindow ¶
type QuotaWindow struct {
Status string `json:"status"`
Percent int `json:"percent"`
ResetsAt time.Time `json:"resetsAt"`
}
QuotaWindow 表示一个配额窗口
type Usage ¶
type Usage struct {
Rolling QuotaWindow `json:"rolling"`
Weekly QuotaWindow `json:"weekly"`
Monthly QuotaWindow `json:"monthly"`
}
Usage 表示配额使用情况
func FromProviderUsage ¶ added in v0.3.0
FromProviderUsage 将 provider.Usage 转换为 models.Usage
Click to show internal directories.
Click to hide internal directories.