python: various fixes for GPT4All and Embed4All (#2130)

Key changes:
* honor empty system prompt argument
* current_chat_session is now read-only and defaults to None
* deprecate fallback prompt template for unknown models
* fix mistakes from #2086

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
Jared Van Bortel
2024-03-15 11:49:58 -04:00
committed by GitHub
parent 53f109f519
commit 255568fb9a
7 changed files with 132 additions and 148 deletions

View File

@@ -317,10 +317,10 @@ are used instead of model-specific system and prompt templates:
=== "Output"
```
default system template: ''
default prompt template: '### Human: \n{0}\n\n### Assistant:\n'
default prompt template: '### Human:\n{0}\n\n### Assistant:\n'
session system template: ''
session prompt template: '### Human: \n{0}\n\n### Assistant:\n'
session prompt template: '### Human:\n{0}\n\n### Assistant:\n'
```