client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCommitMessage

func BuildCommitMessage() (string, error)

Types

type Client

type Client interface {
	GenerateContent(ctx context.Context, diff string, branchIssue string, streamingFn func(ctx context.Context, chunk []byte) error) (string, error)
}

type CopilotClient

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

func NewCopilotClient

func NewCopilotClient(c config.Config) *CopilotClient

func (*CopilotClient) GenerateContent

func (c *CopilotClient) GenerateContent(
	ctx context.Context,
	diff string,
	branchIssue string,
	streamingFn func(ctx context.Context, chunk []byte) error,
) (string, error)

type OllamaClient

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

func NewOllamaClient

func NewOllamaClient(c config.Config) *OllamaClient

func (*OllamaClient) GenerateContent

func (c *OllamaClient) GenerateContent(
	ctx context.Context,
	diff string,
	branchIssue string,
	streamingFn func(ctx context.Context, chunk []byte) error,
) (string, error)

Jump to

Keyboard shortcuts

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