ai

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CmdQuestion

func CmdQuestion(history []string, chatPrompt string, conf *config.Config) (*openai.ChatCompletionStream, error)

func CommitMessage

func CommitMessage(diff string, conventional bool, conf *config.Config) (*openai.ChatCompletionStream, error)

func CompressDiff

func CompressDiff(diff string, conf *config.Config) (string, error)

func Markdown

func Markdown(filePath, contents, chatPrompt string, conf *config.Config) (string, error)

func PRBody

func PRBody(info string, conf *config.Config) (*openai.ChatCompletionStream, error)

func PRTitle

func PRTitle(gitLog string, conf *config.Config) (*openai.ChatCompletionStream, error)

func Question

func Question(files []prompt.GitFile, chatPrompt string, conf *config.Config, verbose bool) (*openai.ChatCompletionStream, error)

func SimpleRequest

func SimpleRequest(prompt string, conf *config.Config) (string, error)

func SimpleStreamRequest

func SimpleStreamRequest(prompt string, conf *config.Config) (*openai.ChatCompletionStream, error)

func SingleFile

func SingleFile(filePath, contents, chatPrompt string, conf *config.Config) (string, error)

Document a file using the OpenAI Otto API. Takes a file path, a prompt, and an API key as arguments.

Types

This section is empty.

Jump to

Keyboard shortcuts

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