clients

package
v0.0.0-...-b77fd0c Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CODE_PREVIEW_SIZE = 4

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubRepoClient

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

func NewGithubRepoClient

func NewGithubRepoClient() GithubRepoClient

constructor

func (*GithubRepoClient) DeleteComment

func (grc *GithubRepoClient) DeleteComment(comment *github.PullRequestComment) error

func (*GithubRepoClient) GetPrComments

func (grc *GithubRepoClient) GetPrComments(prId int) ([]*github.PullRequestComment, error)

func (*GithubRepoClient) GetPrDiff

func (grc *GithubRepoClient) GetPrDiff(prId int) (string, error)

func (*GithubRepoClient) GetPrs

func (grc *GithubRepoClient) GetPrs() ([]*github.PullRequest, error)

func (*GithubRepoClient) Init

func (grc *GithubRepoClient) Init()

func (*GithubRepoClient) PostComment

func (grc *GithubRepoClient) PostComment(prId int, comment *github.PullRequestComment) error

func (*GithubRepoClient) ReplyToComment

func (grc *GithubRepoClient) ReplyToComment(prId int, comment *github.PullRequestComment, body string) error

type OpenAiClient

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

func NewOpenAiClient

func NewOpenAiClient() *OpenAiClient

constructor

func (*OpenAiClient) GetCompletion

func (oac *OpenAiClient) GetCompletion(prompt string, debug bool) (*string, error)

func (*OpenAiClient) Init

func (oac *OpenAiClient) Init()

func (*OpenAiClient) RequestCompletion

func (oac *OpenAiClient) RequestCompletion(messages []openai.ChatCompletionMessage) (string, error)

Jump to

Keyboard shortcuts

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