config

package
v0.0.0-...-a8b465f Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpenaiApiKeyLabel         = "openaiApiKey"
	OpenaiDeploymentNameLabel = "openaiDeploymentName"
	OpenaiDeploymentLabel     = "openaiDeployment"
	MaxTokensLabel            = "maxTokens"
	AzureOpenaiEndpointLabel  = "azureOpenaiEndpoint"
	SkipConfirmationLabel     = "skipConfirmation"
	TemperatureLabel          = "temperature"
	ChatContextLabel          = "chatContext"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	OpenaiApiKey         string
	OpenaiDeploymentName string
	OpenaiDeployment     models.Deployment
	MaxTokens            int
	AzureOpenaiEndpoint  string
	SkipConfirmation     bool
	Temperature          float32
	ChatContext          string
	Choices              int
}

func (*AppConfig) Initialize

func (c *AppConfig) Initialize(viperConfig viper.Viper) error

Jump to

Keyboard shortcuts

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