client

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunSetupConfig added in v0.2.0

func RunSetupConfig() domain.Config

func SetupClient added in v0.2.0

func SetupClient(forceInitialize bool) domain.Config

SetupClient initializes the client and returns the config. if forceInitialize is true, it will run the setup process even if the config file exists.

func WriteConf added in v0.2.0

func WriteConf(config domain.Config)

Types

type ChatClient

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

func (*ChatClient) InitClient

func (c *ChatClient) InitClient(client *openai.Client, config domain.Config)

func (*ChatClient) StartChatLoop

func (c *ChatClient) StartChatLoop(initialPrompt string)

Jump to

Keyboard shortcuts

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