"character greeting" displayed and editable on the fly (#743)

* Add greetings field

* add greeting field and make it interactive

* Minor changes

* Fix a bug

* Simplify clear_chat_log

* Change a label

* Minor change

* Simplifications

* Simplification

* Simplify loading the default character history

* Fix regression

---------

Co-authored-by: oobabooga
This commit is contained in:
OWKenobi 2023-04-03 17:16:15 +02:00 committed by GitHub
parent 8b1f20aa04
commit dcf61a8897
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 41 deletions

View file

@ -31,6 +31,7 @@ settings = {
'name1': 'You',
'name2': 'Assistant',
'context': 'This is a conversation with your Assistant. The Assistant is very helpful and is eager to chat with you and answer your questions.',
'greeting': 'Hello there!',
'stop_at_newline': False,
'chat_prompt_size': 2048,
'chat_prompt_size_min': 0,