Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command mode and allow changing the active mode #6

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

matheusd
Copy link

This adds a command mode (":") to the chat app.

In command mode, you can debug (show [model | messages]) or change the active model (model <newmodel>).

More commands are possible in the future.

Messages are preserved when changing the model.

Pressing ':' in the prompt will make it change into command mode and
back.

Command mode will be able to process meta commands for chat.sh
These shouldn't be used. The chat() function should be used.
This will make it easier to extend it in the future with additional
functionality.
Command 'model' changes the active model but preserves the message
history.
@VictorTaelin
Copy link
Owner

I don't have GH notifications so I missed this, but can merge once someone fixes the conflicts, sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants