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
I have an alias set up to use the predefined role using the --chat option.
For example, --chat improve is automatically added to every "Improve writing" query.
ShellGPT truncates the chat using the CHAT_CACHE_LENGTH option
each time it saves the conversation.
As a result, the first message eventually gets removed,
causing the tool to display "Could not determine chat role",
since the role is defined in that initial message.
To prevent this issue, the first message should likely never be truncated.
The text was updated successfully, but these errors were encountered:
igrmk
added a commit
to igrmk/shell_gpt
that referenced
this issue
Oct 12, 2024
Hello @igrmk, thank you for raising the issue, I experiment the same behavior.
For me, it seems to happen when I interrupt the chat with Ctrl-C and try to start it again.
I have an alias set up to use the predefined role using the
--chat
option.For example,
--chat improve
is automatically added to every "Improve writing" query.ShellGPT truncates the chat using the
CHAT_CACHE_LENGTH
optioneach time it saves the conversation.
As a result, the first message eventually gets removed,
causing the tool to display "Could not determine chat role",
since the role is defined in that initial message.
To prevent this issue, the first message should likely never be truncated.
The text was updated successfully, but these errors were encountered: