Documentation ¶
Index ¶
Constants ¶
View Source
const ( ChatGPT = "ChatGPT" ChatGPTUnofficial = "ChatGPTUnofficial" NewBingUnofficial = "NewBingUnofficial" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountInfo ¶
type AccountState ¶
type AccountState struct {
AccountInfo AccountInfo `json:"account_info"`
}
type ChatMessage ¶
type ChatMessage struct { Role string `json:"role"` ID string `json:"id"` ParentMessageID string `json:"parentMessageId"` ConversationID string `json:"conversationId"` Text string `json:"text"` Delta string `json:"delta"` Detail DetailInfo `json:"detail"` }
func (*ChatMessage) Byte ¶
func (msg *ChatMessage) Byte() []byte
func (*ChatMessage) String ¶
func (msg *ChatMessage) String() string
type ChoiceInfo ¶
type DetailInfo ¶
type DetailInfo struct { ID string `json:"id"` Object string `json:"object"` Created int64 `json:"created"` Model string `json:"model"` Choices []ChoiceInfo `json:"choices"` }
type FailMessage ¶
type FailMessage struct { Message string `json:"message"` Data interface{} `json:"data"` Status string `json:"status"` }
Fail Message {"message":"tnames: Host: bypass.duti.tech. is not in the","data":null,"status":"Fail"}
func (*FailMessage) Byte ¶
func (msg *FailMessage) Byte() []byte
func (*FailMessage) String ¶
func (msg *FailMessage) String() string
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) SetAccountState ¶ added in v1.1.1
func (s *Server) SetAccountState(accountState AccountState)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.