Versions in this module Expand all Collapse all v1 v1.1.2 Apr 1, 2024 v1.1.1 Apr 1, 2024 Changes in this version type ChatGPT + Raw bool v1.1.0 Apr 1, 2024 Changes in this version + const ChatURL + const PhotoURL + func NewPhotoQuerier(pConf photo.Configurations) (models.Querier, error) + func NewTextQuerier(conf text.Configurations) (models.ChatQuerier, error) + type ChatCompletion struct + Choices []Choice + Created int64 + ID string + Model string + Object string + SystemFingerprint string + Usage Usage + type ChatGPT struct + FrequencyPenalty float32 + MaxTokens *int + Model string + PresencePenalty float32 + Temperature float32 + TopP float32 + Url string + func (q *ChatGPT) Query(ctx context.Context) error + func (q *ChatGPT) TextQuery(ctx context.Context, chat models.Chat) (models.Chat, error) + type Choice struct + FinishReason string + Index int + Logprobs interface{} + Message models.Message + type DallE struct + Model string + N int + Output photo.Output + Prompt string + Quality string + ResponseFormat string + Size string + Style string + func (q *DallE) Query(ctx context.Context) error + type DallERequest struct + Model string + N int + Prompt string + Quality string + ResponseFormat string + Size string + Style string + type ImageResponse struct + B64_JSON string + RevisedPrompt string + URL string + type ImageResponses struct + Created int + Data []ImageResponse + type Usage struct + CompletionTokens int + PromptTokens int + TotalTokens int