Skip to content

[Feature Request] Enhance conversation repl #88

@sigoden

Description

@sigoden

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

  1. The conversation automaticlly saved to $CONFIG_DIR/conversations/<datetime>-<first-message-truncated>.json
  2. The conversation is not bound to a specifiy model.
  3. Allow to run .model in the middle of conversation.
  4. Not allow to run .role or .prompt in the middle of conversation.

Welcome to provide suggestions for the design of the conversation repl.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions