Skip to content

ChatGPT CLI v1.1.0

Pre-release
Pre-release

Choose a tag to compare

@kardolus kardolus released this 17 Jun 18:50
· 478 commits to main since this release

Release 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:

  1. We have modified the Client struct, resulting in the removal of certain fields (Model, capacity, and serviceURL), and the addition of the Config field. 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
}
  1. Several constants have been removed from the client configuration. The constants DefaultGPTModel, DefaultServiceURL, CompletionPath, ModelPath, and MaxTokenSize are no longer available. The constants AssistantContent, AssistantRole, ErrEmptyResponse, MaxTokenBufferPercentage, SystemRole, UserRole, and gptPrefix are 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-cli

Direct 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.