Skip to content

Add command mode and allow changing the active mode#6

Open
matheusd wants to merge 10 commits intoVictorTaelin:mainfrom
matheusd:cmd
Open

Add command mode and allow changing the active mode#6
matheusd wants to merge 10 commits intoVictorTaelin:mainfrom
matheusd:cmd

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.

matheusd added 10 commits July 12, 2024 10:34
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