Versions in this module Expand all Collapse all v0 v0.2.1 May 23, 2024 Changes in this version + const Split + var HEADERS = map[string]string + type BingChat struct + func NewChat(cookies string) (chatRoom *BingChat, err error) + func (c *BingChat) Chat(ctx context.Context, askMsg string) (ans string, err error) + type BingImgGen struct + func NewImgGen(cookies string) (imgGen *BingImgGen) + func (gen *BingImgGen) GenImgAync(ctx context.Context, prompt string) (ch <-chan []string, err error) + type ChatHub struct + func (c *ChatHub) Close() (err error) + func (c *ChatHub) SendChatMsg(ctx context.Context, invocationId int, message string) (resp ChatResponse, err error) + type ChatRequest struct + ClientId string + ConversationId string + ConversationSignature string + type ChatResponse struct + InvocationId int + Item struct{ ... } + Type int + type StrChMng struct + func NewStrChMng() (mng *StrChMng) + func (mng *StrChMng) AddCh(uid string, ch chan<- string) + func (mng *StrChMng) DelCh(uid string) + func (mng *StrChMng) GetCh(uid string) (ch chan<- string, has bool)