You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are times when a model call fails. aichat should return a non-zero error code when this happens.
Here is an example where aichat works as expected. When the file is not present, aichat returns the error and an error code greater than zero. As a result, the starship prompt shows a red > prompt.
Here is an example where aichat experiences a model error when using claude. aichat return the error message; however, it return a 0 error code. As a result, the starship prompt shows a white > prompt.
In order for me to create well behaved scripts, I need aichat to return a non-zero error code in these circumstances.
config
❯ aichat --info
model claude:claude-3-opus-20240229
temperature -
dry_run false
save true
save_session -
highlight true
light_theme false
wrap no
wrap_code false
auto_copy false
keybindings vi
prelude -
compress_threshold 2000
config_file /home/cb/.config/aichat/config.yaml
roles_file /home/cb/.config/aichat/roles.yaml
messages_file /home/cb/.config/aichat/messages.md
sessions_dir /home/cb/.config/aichat/sessions
There are times when a model call fails. aichat should return a non-zero error code when this happens.
Here is an example where aichat works as expected. When the file is not present, aichat returns the error and an error code greater than zero. As a result, the starship prompt shows a red > prompt.
Here is an example where aichat experiences a model error when using claude. aichat return the error message; however, it return a 0 error code. As a result, the starship prompt shows a white > prompt.
In order for me to create well behaved scripts, I need aichat to return a non-zero error code in these circumstances.
config
❯ aichat --info
model claude:claude-3-opus-20240229
temperature -
dry_run false
save true
save_session -
highlight true
light_theme false
wrap no
wrap_code false
auto_copy false
keybindings vi
prelude -
compress_threshold 2000
config_file /home/cb/.config/aichat/config.yaml
roles_file /home/cb/.config/aichat/roles.yaml
messages_file /home/cb/.config/aichat/messages.md
sessions_dir /home/cb/.config/aichat/sessions
env
❯ aichat --version
aichat 0.16.0
❯ cat /etc/os-release
NAME="Pop!_OS"
VERSION="22.04 LTS"
ID=pop
ID_LIKE="ubuntu debian"
terminal: alacrity
The text was updated successfully, but these errors were encountered: