mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 16:17:57 +01:00
Fix deprecated API (#4539)
This commit is contained in:
parent
d86f1fd2c3
commit
372d712921
@ -74,8 +74,8 @@ def build_parameters(body, chat=False):
|
|||||||
if str(character) == "None":
|
if str(character) == "None":
|
||||||
character = "Assistant"
|
character = "Assistant"
|
||||||
|
|
||||||
name1, name2, _, greeting, context, _ = load_character_memoized(character, str(body.get('your_name', shared.settings['name1'])), '', instruct=False)
|
name1, name2, _, greeting, context, _, _ = load_character_memoized(character, str(body.get('your_name', shared.settings['name1'])), '', instruct=False)
|
||||||
name1_instruct, name2_instruct, _, _, context_instruct, turn_template = load_character_memoized(instruction_template, '', '', instruct=True)
|
name1_instruct, name2_instruct, _, _, context_instruct, turn_template, _ = load_character_memoized(instruction_template, '', '', instruct=True)
|
||||||
generate_params.update({
|
generate_params.update({
|
||||||
'mode': str(body.get('mode', 'chat')),
|
'mode': str(body.get('mode', 'chat')),
|
||||||
'name1': str(body.get('name1', name1)),
|
'name1': str(body.get('name1', name1)),
|
||||||
|
Loading…
Reference in New Issue
Block a user