Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the ChatGPT API client that implements the Paraphraser interface.
type Config ¶
type Config struct { ApiKey string `envconfig:"CHATGPT_API_KEY"` Temperature float32 `envconfig:"CHATGPT_TEMPERATURE" default:"0.9"` }
Config contains the configuration for the ChatGPT API client.
func ConfigFromEnv ¶
func ConfigFromEnv() *Config
ConfigFromEnv loads the configuration from the environment variables.
Click to show internal directories.
Click to hide internal directories.