Versions in this module Expand all Collapse all v0 v0.0.1 Mar 15, 2023 Changes in this version + func Chat(ctx context.Context, in *ChatRequest) (<-chan *ChatResponse, <-chan error) + type ChatMessage struct + Content string + Role string + type ChatRequest struct + FrequencyPenalty float64 + MaxTokens int + Message []ChatMessage + Model string + N int + PresencePenalty float64 + Stop []string + Stream bool + Temperature float64 + TopP float64 + type ChatResponse struct + Choices []struct{ ... } + Created int64 + ID string + Object string + Usage struct{ ... } + type CompletionRequest struct + BestOf int + Echo bool + FrequencyPenalty float64 + LogProbs int + MaxTokens int + Model string + N int + PresencePenalty float64 + Prompt string + Stop string + Stream bool + Suffix string + Temperature float64 + TopP float64 + type CompletionResponse struct + Choices []struct{ ... } + Created int64 + ID string + Model string + Object string + Usage struct{ ... } + func Completion(ctx context.Context, url string, in *CompletionRequest) (*CompletionResponse, error) + type EditOutput struct + Choices []string + Created time.Time + type EditRequest struct + Input string + Instruction string + Model string + N int + Temperature float64 + type EditResponse struct + Choices []struct{ ... } + Created int64 + Object string + Usage struct{ ... } + func Edit(ctx context.Context, in *EditRequest) (*EditResponse, error)