Documentation ¶
Index ¶
Constants ¶
View Source
const ( HeaderContentType = "Content-Type" ContentTypeForm = "application/x-www-form-urlencoded" )
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(vars sdkservices.Vars) sdkservices.Integration
Types ¶
type ChatCompletionChoice ¶
type ChatCompletionChoice struct { Index int `json:"index"` Message openai.ChatCompletionMessage `json:"message"` FinishReason string `json:"finish_reason"` }
type ChatCompletionResponse ¶
type ChatCompletionResponse struct { ID string `json:"id"` Object string `json:"object"` Created int64 `json:"created"` Model string `json:"model"` Choices []ChatCompletionChoice `json:"choices"` Usage openai.Usage `json:"usage"` SystemFingerprint string `json:"system_fingerprint"` Error string `json:"error,omitempty"` }
Workaround for a JSON conversion issue in the client library, and for passing errors back to the caller.
Click to show internal directories.
Click to hide internal directories.