Versions in this module Expand all Collapse all v0 v0.4.0 Mar 2, 2024 Changes in this version + type AI interface + Ask func(prompt string) (string, error) + func NewAPI(l *zerolog.Logger, apiKey string) AI + func NewWeb(l *zerolog.Logger, cookies Cookies) AI + type GeminiAPI struct + TimeoutQuery int + func (b *GeminiAPI) Ask(prompt string) (string, error) v0.3.7 Feb 18, 2024 Changes in this version + type Cookies map[string]string + type Gemini struct + Cookies map[string]string + TimeoutQuery int + TimeoutSnim0e int + func New(l *zerolog.Logger, cookies Cookies) *Gemini + func (b *Gemini) Ask(prompt string) (string, error) + func (g *Gemini) CommitCookies(cfgFilePath string) + func (g *Gemini) RotateCookies() + type Log struct + func (l Log) Debugf(msg string, args ...interface{}) + func (l Log) Errorf(msg string, args ...interface{}) + func (l Log) Fatalf(msg string, args ...interface{}) + func (l Log) Infof(msg string, args ...interface{}) + func (l Log) Warnf(msg string, args ...interface{})