config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize()

Types

type Config

type Config struct {
	ServerUrl             string `yaml:"SERVER_URL" mapstructure:"SERVER_URL"`
	ServerPort            int    `yaml:"SERVER_PORT" mapstructure:"SERVER_PORT"`
	LogLevel              string `yaml:"LOG_LEVEL" mapstructure:"LOG_LEVEL"`
	ChatgptBaseUrl        string `yaml:"CHATGPT_BASE_URL" mapstructure:"CHATGPT_BASE_URL"`
	ChatgptAccessToken    string `yaml:"CHATGPT_ACCESS_TOKEN" mapstructure:"CHATGPT_ACCESS_TOKEN"`
	ChatgptModel          string `yaml:"CHATGPT_MODEL" mapstructure:"CHATGPT_MODEL"`
	ReplicateBaseUrl      string `yaml:"REPLICATE_BASE_URL" mapstructure:"REPLICATE_BASE_URL"`
	ReplicateApiToken     string `yaml:"REPLICATE_API_TOKEN" mapstructure:"REPLICATE_API_TOKEN"`
	ReplicateModelVersion string `yaml:"REPLICATE_MODEL_VERSION" mapstructure:"REPLICATE_MODEL_VERSION"`
}
var Instance Config

Jump to

Keyboard shortcuts

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