Fix deprecated API (#4539)
This commit is contained in:
parent
d86f1fd2c3
commit
372d712921
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue