Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateUUID ¶
func HandleError ¶
func HandleError(err error)
func LoadEnvFromFile ¶
Types ¶
type ChatBot ¶
type ChatBot struct { Username string Password string Cookies []*http.Cookie Session *http.Client HFBaseURL *url.URL JSONHeader http.Header ConversationIDList []string ActiveModel string AcceptedWelcomeModal bool CurrentConversation string }
func NewChatBot ¶
func (*ChatBot) AcceptEthicsModal ¶
func (*ChatBot) NewConversation ¶
type ChatOptions ¶
type ChatParameters ¶
type ChatParameters struct { Temperature float64 `json:"temperature"` TopP float64 `json:"top_p"` RepetitionPenalty float64 `json:"repetition_penalty"` TopK int `json:"top_k"` Truncate int `json:"truncate"` Watermark bool `json:"watermark"` MaxNewTokens int `json:"max_new_tokens"` Stop []string `json:"stop"` ReturnFullText bool `json:"return_full_text"` Stream bool `json:"stream"` }
type ChatRequest ¶
type ChatRequest struct { Inputs string `json:"inputs"` Parameters ChatParameters `json:"parameters"` Options ChatOptions `json:"options"` }
type ChatResponse ¶
type Login ¶
type Login struct { Email string Passwd string CookiePath string Cookies []*http.Cookie Client *http.Client }
func (*Login) GetAuthURL ¶
func (*Login) LoadCookies ¶
func (*Login) SaveCookies ¶
func (*Login) SigninWithEmail ¶
Click to show internal directories.
Click to hide internal directories.