Documentation ¶
Index ¶
- Constants
- func FileToBytes(fileName string) ([]byte, error)
- func FileToString(fileName string) (string, error)
- func FormatPrompt(str string, counter, usage int, now time.Time) string
- func GenerateUniqueSlug(prefix string) string
- func GetConfigHome() (string, error)
- func GetDataHome() (string, error)
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 FileToString ¶ added in v1.7.1
func FormatPrompt ¶ added in v1.7.0
func GenerateUniqueSlug ¶ added in v1.7.2
func GetConfigHome ¶ added in v1.6.7
func GetDataHome ¶ added in v1.6.7
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.