package
Version:
v1.18.2
Opens a new window with list of versions in this module.
Published: Apr 22, 2024
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CostMap struct {
PromptCostPerModel map[string]float64 `json:"promptCostPerModel"`
CompletionCostPerModel map[string]float64 `json:"completionCostPerModel"`
}
const (
OpenAiProvider Provider = "openai"
)
type Setting struct {
CreatedAt int64 `json:"createdAt"`
UpdatedAt int64 `json:"updatedAt"`
Provider string `json:"provider"`
Setting map[string]string `json:"setting,omitempty"`
Id string `json:"id"`
Name string `json:"name"`
AllowedModels []string `json:"allowedModels"`
CostMap *CostMap `json:"costMap"`
}
type UpdateSetting struct {
UpdatedAt int64 `json:"updatedAt"`
Setting map[string]string `json:"setting,omitempty"`
Name *string `json:"name"`
AllowedModels *[]string `json:"allowedModels,omitempty"`
CostMap *CostMap `json:"costMap,omitempty"`
}
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.