openai

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PromptDescribeChanges = "" /* 127-byte string literal not displayed */
	PromptOverallDescribe = "" /* 202-byte string literal not displayed */
	PromptReview          = "" /* 147-byte string literal not displayed */
	PromptOverallReview   = "" /* 158-byte string literal not displayed */
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(token string) *Client

func (*Client) ChatCompletion

func (o *Client) ChatCompletion(ctx context.Context, messages []openai.ChatCompletionMessage) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL