Documentation
¶
Index ¶
Constants ¶
View Source
const ( BU = "https://chat.openai.com/backend-api" Gpt3Model = "text-davinci-002-render-sha" )
Variables ¶
View Source
var H = map[string]string{
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0",
"Content-Type": "application/json; charset=utf-8",
"Accept": "text/event-stream",
}
Functions ¶
Types ¶
type Chat ¶
type PartialResponse ¶
type PartialResponse struct {
Error error
ConversationId string `json:"conversation_id"`
ResponseError interface{} `json:"error"`
Message struct {
Id string `json:"id"`
Status string `json:"status"`
Author struct {
Role string `json:"role"`
} `json:"author"`
Content struct {
ContentType string `json:"content_type"`
Parts []string `json:"parts"`
} `json:"content"`
} `json:"message"`
}
Click to show internal directories.
Click to hide internal directories.