Documentation ¶
Index ¶
- type BasicAskRequest
- type BasicAskResponse
- func (o BasicAskResponse) GetChoices() []domain.Choice
- func (o BasicAskResponse) GetCreated() int64
- func (o BasicAskResponse) GetID() string
- func (o BasicAskResponse) GetModel() string
- func (o BasicAskResponse) GetObjectType() string
- func (o BasicAskResponse) GetSystemFingerprint() any
- func (o BasicAskResponse) GetUsage() domain.Usage
- type BasicAskUsage
- type Choice
- type Config
- type Message
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAskRequest ¶
type BasicAskResponse ¶
type BasicAskResponse struct { ID string `json:"id"` Object string `json:"object"` // will be set to "chat.completion" Created int64 `json:"created"` Model string `json:"model"` Choices []Choice `json:"choices"` Usage BasicAskUsage `json:"usage"` SystemFingerprint any `json:"system_fingerprint"` }
func (BasicAskResponse) GetChoices ¶
func (o BasicAskResponse) GetChoices() []domain.Choice
func (BasicAskResponse) GetCreated ¶
func (o BasicAskResponse) GetCreated() int64
func (BasicAskResponse) GetID ¶
func (o BasicAskResponse) GetID() string
func (BasicAskResponse) GetModel ¶
func (o BasicAskResponse) GetModel() string
func (BasicAskResponse) GetObjectType ¶
func (o BasicAskResponse) GetObjectType() string
func (BasicAskResponse) GetSystemFingerprint ¶
func (o BasicAskResponse) GetSystemFingerprint() any
func (BasicAskResponse) GetUsage ¶
func (o BasicAskResponse) GetUsage() domain.Usage
type BasicAskUsage ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewOpenAIProvider ¶
func (Provider) BasicAskStream ¶
func (Provider) ListModels ¶
Click to show internal directories.
Click to hide internal directories.