chatgpt

An elegant interactive CLI for ChatGPT

Stars
733
chatgpt - v1.3.5 Latest Release

Published by j178 5 months ago

Changelog

Features

  • da55f5746a03c471eb5ed1a53b14a1873acec941: feat: use embeded tiktoken encodings (#84) (@j178)
  • b43207ce756c8d7d2f8dededd86132d94e7537ba: feat: use github.com/j178/tiktoken-go to count tokens (#85) (@j178)
  • e724594056c81434423c83452b2c197043e813e8: feat: use back pkoukk/tiktoken-go to support gpt-4o (#98) (@j178)

Bug fixes

  • 852d2e6243a4b48677b955a5dd5eaf501f04f4e0: fix: update CountMessagesTokens (@j178)

Others

  • e5ff4a229395fd59dae68abbf53be37f0c80363d: chore: minor tweaks (@j178)
  • 966fdce793169cd74afdb37a96b197e9e0656c06: docs: add a note (@j178)
  • dd23ccaff143ade076bf01a9918b847297cae851: deps: bump to latest (@j178)
  • ba751e3ac2114c13eb68e30cc596d8d1a0b434d8: ci: use go 1.22 (@j178)
  • e690a081b4139029d0b31f95612645c7c52d8b64: ci: bump action (@j178)
  • 6881ec72047a65de3b0304ebc1e765b1ce1258dc: ci: fix goreleaser config (@j178)
chatgpt - v1.3.4

Published by j178 9 months ago

Changelog

Bug fixes

  • 0bb0213103effeda4765d4c3ab516ad519343cef: fix: add check to model name (#83) (@j178)

Others

  • b732ab5457b232dc90dd4e1d5546cc12d4e12518: docs: add temperate parameter description (@j178)
chatgpt - v1.3.3

Published by j178 9 months ago

Changelog

Bug fixes

  • 9882d94fa38975614ef2d96f5480459dffee3115: fix: azure openai support (#82) (@j178)
chatgpt - v1.3.2

Published by j178 10 months ago

Changelog

Fixes

  • 114c97fe02deb2fca969029af97b2be623d1f761: misc: bump bubbletea to latest v0.25.0 to include a important fix when dealing with very long input. Fixes #32 (@j178)
chatgpt - v1.3.1

Published by j178 12 months ago

Changelog

Bug fixes

  • 78a54f001358b53ab94352fa15d0fad05364bf7f: fix: fix azure support (@j178)
  • d217301f775bd1ec882cc18b00d6954364f9ddea: fix: remove model check (@j178)

Others

  • 191bd4ce53dcbe1303dd38fefbeadc8e3570bdce: misc: bump deps (@j178)
chatgpt - v1.3

Published by j178 about 1 year ago

Changelog

Features

  • 676b3cf175a7e94194870292da0ccbd16b075bf0: feat: support customizing key bindings (#79) (@j178)
chatgpt - v1.2.1

Published by j178 about 1 year ago

Changelog

Bug fixes

  • 249bff635cca488468f10c87849b75590a39c517: fix: ignore history file not exist error (#70) (@rai62)
  • fad4a3925cf3e1048b76610da470e2e5ba09ce4d: fix: remove nerd font icons (@j178)
  • 4b1bb8c5193b9215adba216bbe6a10dbe1ccfe3e: fix: installation binary name (@j178)
  • 65b903adff29c63e138fa50e20872405c56ec3f5: fix: goreleaser (@j178)

Others

  • ad065418ed24be47ec6fb151e3c2a817e2bc58a1: Update golang install method in README.md (#71) (@AnthonySmithDev)
  • e79529ff0b55295481e9c05f7ac046e82328fb3e: chore: fix goreleaser deprecations (@j178)
chatgpt - v1.2.0

Published by j178 over 1 year ago

Changelog

Features

  • a432962faf75b9f2b321690de4021d4432aa82a7: feat: refactor packages (#69) (@j178)

Others

  • df42912f2a3d2dd1529076c23cb9c9cf85fa9398: chore: bump deps (#68) (@j178)
chatgpt - v1.1.3

Published by j178 over 1 year ago

Changelog

Features

  • 48562c2053f460bd28c47e3a0111f5af8505cc47: feat: reuse or create new conversation by specified prompt (#67) (@j178)
chatgpt - v1.1.2

Published by j178 over 1 year ago

Changelog

Features

  • d0df906e947997296d01d9cc55de750b28582c4c: feat: set current conversation prompt to value of -p (#66) (@j178)

Others

  • f80ae340f90b1af07bd8f6f11f6e06fb3623873c: Add Documentation on Keybindings to README (#64) (@piercecohen1)
chatgpt - v1.1.1

Published by j178 over 1 year ago

Changelog

Features

  • 0e0e9b977020f7922a42965a8356a2378d1199d0: feat: use embeded tiktoken (@j178)
chatgpt - v1.1

Published by j178 over 1 year ago

Changelog

Features

  • 1c0aece86dd467e0d0e2c1c8a986e3b4ff09cca0: feat: support azure openai service (#58) (@j178)
  • 64d436e52bfbd699dbac3511ea275294e1942acd: feat: one-time chat mode support stream (#56) (@yaocccc)

Others

  • 107309182395ec08f0a9269dd9faa2867cfb3b78: chore: minor (@j178)
  • 9aed6488d069bd06a07b00d9638d53c979ebc31a: chore: split packages (@j178)
  • c6859857e74995efb0f9e9bf86dfa3bed35a0d5c: chore: use bold font (@j178)
  • 6744224240809bd27f948f68acdb95ae03acb501: misc: refactor chatgpt ask (@j178)
chatgpt - v1.0.2

Published by j178 over 1 year ago

Changelog

Bug fixes

  • e6186d9c7aa9a01981c2c14d342f3608a1b686cf: fix: disable nerdfont symbols on Windows (@j178)
chatgpt - v1.0.1

Published by j178 over 1 year ago

Changelog

Bug fixes

  • f7b5a065b155206a0398a03281c92e9e1094c2a0: fix: improve error display (@j178)
chatgpt - v1.0

Published by j178 over 1 year ago

Changelog

Features

  • 5296bd142b0555a9199d1e1ad53de33f6c61f914: feat: add version display (@j178)
  • 9616a4b28d005beea430a76536297ca214374665: feat: improve English word wrap (@j178)
  • 306c92e973bddc0dcd65adcdb07170e7bfd40778: feat: add option to create a new conversation when launching (#36) (@key-moon)
  • a8af4f374a00e9d65b35d61f3c3baab802e3bd73: feat: prohibit multiple running instances, add detach mode (#42) (@j178)
  • 0f32731fc983b3721d8af1eb1ee6d288aedd4c02: feat: add bultin translator and shell prompt (#40) (@j178)
  • 60a539aa22ef097679ff6acdf91617793fe6da90: feat: display prompt key (#43) (@y011d4)
  • 7f4bb563d833d4b2c52461cf2583979964d6c91a: feat: allow alt+v to paste too (#46) (@j178)
  • 215557d4c4822bee4aac10ae996611d4ca770887: feat: positional arguments to enable ask-and-response mode (#48) (@j178)
  • 63cdb14d5869fad19dcd2bf102edf1d2aff8f92d: feat: improve status bar (#50) (@j178)
  • 115ac9053b00794237460658bd52b81f27ff0c93: feat: add spinner when waiting for answer (#37) (@j178)
  • 9ddb13a7ce13aac496bc81940b8d95ba06ba6894: feat: show context token usage (#51) (@j178)

Others

  • ba0b80b9a32bdf8e5a592d5b6f1f23f9bf4de968: misc: minor improvements (@j178)
  • 868bd5faad9aef9b1afbf26a36bbb5304bfc5c32: Update README.md (@j178)
chatgpt - v0.6.0-beta

Published by j178 over 1 year ago

Breaking changes

  1. The configuration file has been moved to ~/.config/chatgpt/config.json, and the configuration format has been changed. You may need to manually create a new configuration file using the following format:
{
  // Your OpenAI API key
  "api_key": "sk-xxxxxx",
  // OpenAI API endpoint
  "endpoint": "https://api.openai.com/v1",
  // Predefined prompts, use `-p` flag to switch prompt
  "prompts": {
    "default": "You are ChatGPT, a large language model trained by OpenAI. Answer as concisely as possible."
  },
  // Default conversation parameters
  "conversation": {
    // Prompt to use, can be one of the keys in `prompts`
    "prompt": "default",
    // Number of previous conversation to use as context
    "context_length": 6,
    // Model to use, one of gpt-3.5 and gpt-4 series models
    "model": "gpt-3.5-turbo",
    // Whether to stream the response
    "stream": true,
    // Maximum number of tokens to generate
    "max_tokens": 1024
  }
}
  1. Some shortcut keys have been changed
  • Multiline mode shortcut key has been changed to ctrl+j
  • ctrl+r has been changed to remove the current conversation

New features

  • Support for multiple conversations
    ctrl+t to create a new conversation
    ctrl+left and ctrl+right to navigate through conversations
    ctrl+r to remove the current conversation
  • Support for auto-saving conversation history to ~/.config/chatgpt/conversations.json
  • Support for creating a new session by ctrl+x. The conversation context will not be sent in the next question.

Changelog

Features

  • 71f8a78b271ee9fc77774e2fba4fa2d3d24c4349: feat: tweak help commands (@j178)
  • ae0320856326cf3287aae4b79f0254c6ec4b9160: feat!: change config file to ~/.config/chatgpt/config.json (@j178)
  • 6b0dca5fc788c951347c9a3c9991f4ac3547447c: feat!:use up/down as history navigate keys (@j178)
  • a2ad016c2cbaa912e9b048984c4eda65985179cd: feat: Implement saving and loading of history (#29) (@j178)
  • 0753bc46e6f08523f85bc94c9ddf7b3561fc5cde: feat: support multiple conversations (#30) (@j178)

Others

  • dd1b150733586054ac6bb2acaf6249233fa19bf7: Update README.md (@j178)
chatgpt - v0.5.2

Published by j178 over 1 year ago

Changelog

Features

  • 8fff697303347cbac65cb9974e7a4f340b851d8c: feat: support arbitrary prompt (@j178)
chatgpt - v0.5.1

Published by j178 over 1 year ago

Changelog

Features

  • 6fde8ddcc560a1cd336f8eb70711fccd923de649: feat: support one-time chat mode (#25) (@j178)
chatgpt - v0.5.0

Published by j178 over 1 year ago

Changelog

Features

  • 1756159a2c1e8246051f945fc33310af89cc5b89: feat: support customize model and parameters (#23) (@j178)
  • ed2507a978a174861d47974867e3fdb07659dd51: feat: support switch prompt (#24) (@j178)
chatgpt - v0.4.0

Published by j178 over 1 year ago

Changelog

Features

  • 56466de399a2f0a3977964f8adf01b562905397f: feat: support copy to clipboard (#17) (@yaocccc)
  • 2e57532b6fdfcf043348e5dbabf29ccb5b668f0c: feat: use OPENAI_API_ENDPOINT env instead of flag (#21) (@j178)
  • 9d0800412e996d262fe704b00d87c9f1d41218aa: feat: refactor message structure, add help view (#18) (@j178)
  • 6861c198b367acceff23fb00970407a3e99b64a1: feat: support history prev and next (#19) (@yaocccc)
Package Rankings
Top 8.17% on Proxy.golang.org
Badges
Extracted from project README
GitHub downloads
Related Projects