utils

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigHomeEnv    = "OPENAI_CONFIG_HOME"
	DataHomeEnv      = "OPENAI_DATA_HOME"
	DefaultConfigDir = ".chatgpt-cli"
	DefaultDataDir   = "history"
)

Variables

This section is empty.

Functions

func FileToBytes

func FileToBytes(fileName string) ([]byte, error)

func FileToString added in v1.7.1

func FileToString(fileName string) (string, error)

func FormatPrompt added in v1.7.0

func FormatPrompt(str string, counter, usage int, now time.Time) string

func GenerateUniqueSlug added in v1.7.2

func GenerateUniqueSlug(prefix string) string

func GetConfigHome added in v1.6.7

func GetConfigHome() (string, error)

func GetDataHome added in v1.6.7

func GetDataHome() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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