Repository navigation
ChatGPT CLI v1.1.0
Pre-releaseRelease Notes
Changed this to a pre-release due to a bug. Bug was fixed in v1.1.1
This release introduces significant changes to the ChatGPT CLI. We have made several modifications, including removing a few exported constants and exported struct fields, and adding the config.yaml file (see README), which leads to some breaking changes. We have increased the version to 1.1.0 to reflect these changes.
Breaking Changes:
- We have modified the Client struct, resulting in the removal of certain fields (
Model,capacity, andserviceURL), and the addition of theConfigfield. This change simplifies the client configuration process by enabling users to use a config file (config.yaml) for customization. Here is how the struct looks now:
type Client struct {
Config types.Config
History []types.Message
caller http.Caller
historyStore history.HistoryStore
}- Several constants have been removed from the client configuration. The constants
DefaultGPTModel,DefaultServiceURL,CompletionPath,ModelPath, andMaxTokenSizeare no longer available. The constantsAssistantContent,AssistantRole,ErrEmptyResponse,MaxTokenBufferPercentage,SystemRole,UserRole, andgptPrefixare still available.
const (
AssistantContent = "You are a helpful assistant."
AssistantRole = "assistant"
ErrEmptyResponse = "empty response"
MaxTokenBufferPercentage = 20
SystemRole = "system"
UserRole = "user"
gptPrefix = "gpt"
)These changes were made to simplify the client configuration and to increase flexibility by allowing settings to be specified in a user-defined configuration file (config.yaml).
How to Update
Using Homebrew (macOS)
brew upgrade chatgpt-cliDirect Download
For a quick and easy installation without compiling, you can directly download the pre-built binary for your operating system and architecture.
Thank you for your continuous support and understanding as we work to improve ChatGPT CLI.