Skip to content

Releases: sigoden/aichat

v0.9.0

06 Nov 07:48
Compare
Choose a tag to compare

Support multiple LLMs/Platforms

  • OpenAI: gpt-3.5/gpt-4
  • LocalAI: opensource models
  • Azure-OpenAI: user deployed gpt3.5/gpt4
  • PaLM: chat-bison-001
  • Ernie: eb-instant/ernie-bot/ernie-bot-4
  • Qianwen: qwen-turbo/qwen-plus

Enhance session/conversation

New in command mode

      --list-sessions        List all available sessions
  -s, --session [<SESSION>]  Create or reuse a session

New in chat mode

.session                 Start a context-aware chat session
.info session            Show session info
.exit session            End the current session

Other features:

  • Able to start a conversation that incorporates the last question and answer.
  • Deprecate config.conversation_first, use aichat -s instead.
  • Ask for saving session when exit.

Show information

In command mode

aichat --info                     # Show system info
aichat --role shell --info        # Show role info
aichat --session temp  --info     # Show session info

In chat mode

.info                    Print system info
.info role               Show role info
.info session            Show session info

Support textwrap

Configuration:

wrap: no                         # Specify the text-wrapping mode (no*, auto, <max-width>)
wrap_code: false                 # Whether wrap code block

Command:

aichat -w 120          # set max width
aichat -w auto         # use term width
aichat -w no           # no wrap

New Configuration

light_theme: false               # If set true, use light theme
wrap: no                         # Specify the text-wrapping mode (no*, auto, <max-width>)
wrap_code: false                 # Whether wrap code block
auto_copy: false                 # Automatically copy the last output to the clipboard
keybindings: emacs               # REPL keybindings, possible values: emacs (default), vi

Chat REPL changelog

  • Add .copy to Copy the last output to the clipboard
  • Add .read to Read the contents of a file and submit
  • Add .edit for Multi-line editing (CTRL+S to finish)
  • Add .info session to show system info
  • Add .info role to show role info
  • Rename .conversation to .session
  • Rename .clear conversation to .exit session
  • Rename .clear role to .exit role
  • Deprecate .clear
  • Deprecate .prompt
  • Deprecate .hisotry .clear history

Other changes

  • Support bracketed paste, You can directly paste multiple lines of text
  • Suppport customize theme
  • Replace AICHAT_API_KEY with OPENAI_API_KEY, Also support OPENAI_API_BASE
  • Fix duplicate lines in kitty terminal
  • Deprecate prompt, both --prompt and .prompt are removed

v0.8.0

21 Mar 02:00
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.7.0...v0.8.0

v0.7.0

13 Mar 02:38
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.6.0...v0.7.0

v0.6.0

10 Mar 02:41
Compare
Choose a tag to compare

What's Changed

  • feat: add role info to readline indicator by @sigoden in #47
  • feat: support conversation by @sigoden in #48
  • fix: abort by ctrlc unexpectedly prints error message by @sigoden in #49
  • feat: add remain tokens indicator and max tokens guard by @sigoden in #50
  • feat: support two types of role prompts by @sigoden in #52
  • feat: add config.conversation_first by @sigoden in #55
  • feat: type { [ ( to enter multi-line editing mode by @sigoden in #58

Full Changelog: v0.5.0...v0.6.0

v0.5.0

08 Mar 13:47
Compare
Choose a tag to compare

What's Changed

  • refactor: use syntect for highlight, abandon mdcat by @sigoden in #26
  • refactor: optimize ctrl+c/ctrl+d abort handling by @sigoden in #27
  • refactor: support highlighting more languages by @sigoden in #28
  • refactor: adjust repl by @sigoden in #30
  • feat: command mode supports stream out by @sigoden in #31
  • refactor: theme and code color by @sigoden in #32
  • refactor: split long paragraphs for smoother stream output by @sigoden in #33
  • fix: repl set save true not work if not rerun by @sigoden in #34
  • refactor: replace dump with print_now! by @sigoden in #35
  • fix: windows no stream output by @sigoden in #37
  • feat: add role-specific config by @sigoden in #42

Full Changelog: v0.4.0...v0.5.0

v0.4.0

06 Mar 03:09
Compare
Choose a tag to compare

What's Changed

  • feat: replace .editor with .multiline by @sigoden in #18
  • refactor: rename config.no_highlight to highlight by @sigoden in #19
  • feat: add .set command by @sigoden in #20
  • feat: add .prompt command by @sigoden in #21
  • fix: combine pipe and input text by @sigoden in #23
  • feat: add --no-highlight option by @sigoden in #24
  • fix: AICHAT_CONFIG_DIR points to the parent directory by @sigoden in #25

Full Changelog: v0.3.0...v0.4.0

v0.3.0

05 Mar 03:40
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.2.0...v0.3.0

v0.2.0

04 Mar 11:41
Compare
Choose a tag to compare

What's Changed

  • feat: support highlight reply markdown by @sigoden in #3

Full Changelog: v0.1.0...v0.2.0

v0.1.0

03 Mar 03:09
0de680a
Compare
Choose a tag to compare

✨ first release.