Documentation
¶
Index ¶
Constants ¶
View Source
const HOST = "https://api.openai.com"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Turbo ¶
func (*Turbo) Chat ¶
func (T *Turbo) Chat(Msg []*TurboMessage) (respMsg *TurboMessage, err error)
type TurboChoices ¶
type TurboChoices struct { Index uint64 `json:"index"` Message *TurboMessage `json:"message"` FinishReason string `json:"finish_reason"` }
type TurboError ¶
type TurboMessage ¶
type TurboResp ¶
type TurboResp struct { ID string `json:"id"` Object string `json:"object"` Created uint64 `json:"created"` Choices []*TurboChoices `json:"choices"` Usage *TurboUsage `json:"usage"` Error *TurboError `json:"error"` }
type TurboUsage ¶
Click to show internal directories.
Click to hide internal directories.