Documentation
¶
Index ¶
Constants ¶
View Source
const ( BASE_URI = "https://chat.openai.com" AUTH_SESSION_URI = "https://chat.openai.com/api/auth/session" CONVERSATION_URI = "https://chat.openai.com/backend-api/conversation" USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatText ¶
type ChatText struct {
Content string // text content
ConversationID string // conversation context id
MessageID string // current message id, can used as next chat's parent_message_id
}
ChatText chat reply with text format
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a ChatGPT request client
type MixMap ¶
type MixMap = map[string]interface{}
MixMap is a type alias for map[string]interface{}
type Option ¶
type Option func(*Client)
Option is used to set custom option
func WithTimeout ¶
WithTimeout is used to set request timeout
Click to show internal directories.
Click to hide internal directories.
