Fix superbooga when using regenerate (#3362)
This commit is contained in:
parent
901b028d55
commit
f4caaf337a
1 changed files with 2 additions and 1 deletions
|
@ -96,7 +96,8 @@ def apply_settings(chunk_count, chunk_count_initial, time_weight):
|
||||||
def custom_generate_chat_prompt(user_input, state, **kwargs):
|
def custom_generate_chat_prompt(user_input, state, **kwargs):
|
||||||
global chat_collector
|
global chat_collector
|
||||||
|
|
||||||
history = state['history']
|
# get history as being modified when using regenerate.
|
||||||
|
history = kwargs['history']
|
||||||
|
|
||||||
if state['mode'] == 'instruct':
|
if state['mode'] == 'instruct':
|
||||||
results = collector.get_sorted(user_input, n_results=params['chunk_count'])
|
results = collector.get_sorted(user_input, n_results=params['chunk_count'])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue