GPT-3.5 supports up to 4096 tokens, and it is not very likely to have a long conversatio, so there is no need to design a feature-rich conversation repl.
But gpt-4 supports up to 8k tokens, gpt-4-32k supports up to 32k tokens, we can do long conversation. It's necesarry to enhance conversation repl.
.conversation - show conversation help
.conversation new - create a new conversation
.conversation revert [num] - revert current conversation messages.
This give user the ability to edit previous lines, thus branching the conversation in a new direction. This is useful when models get caught in infinite loops, or local optima.
The num parameter specify how many messages to revert. If we omit num parameter, Aichat will display a list of current messages, the user can choose where to revert.
.conversation delete - delete a saved conversation
AIChat will display a multi-select list for the user to select the conversation to delete
.conversation use - reuse a saved conversation
AIChat will display a list for the user to select the conversation to load to
Design details
- The conversation automaticlly saved to
$CONFIG_DIR/conversations/<datetime>-<first-message-truncated>.json
- The conversation is not bound to a specifiy model.
- Allow to run
.model in the middle of conversation.
- Not allow to run
.role or .prompt in the middle of conversation.
Welcome to provide suggestions for the design of the conversation repl.
GPT-3.5 supports up to 4096 tokens, and it is not very likely to have a long conversatio, so there is no need to design a feature-rich conversation repl.
But gpt-4 supports up to 8k tokens, gpt-4-32k supports up to 32k tokens, we can do long conversation. It's necesarry to enhance conversation repl.
.conversation- show conversation help.conversation new- create a new conversation.conversation revert [num]- revert current conversation messages.This give user the ability to edit previous lines, thus branching the conversation in a new direction. This is useful when models get caught in infinite loops, or local optima.
The
numparameter specify how many messages to revert. If we omitnumparameter, Aichat will display a list of current messages, the user can choose where to revert..conversation delete- delete a saved conversationAIChat will display a multi-select list for the user to select the conversation to delete
.conversation use- reuse a saved conversationAIChat will display a list for the user to select the conversation to load to
Design details
$CONFIG_DIR/conversations/<datetime>-<first-message-truncated>.json.modelin the middle of conversation..roleor.promptin the middle of conversation.Welcome to provide suggestions for the design of the conversation repl.