Update tabbed.py
Browse files
tabbed.py
CHANGED
@@ -48,6 +48,8 @@ def chat(history, system_message, max_tokens, temperature, top_p, top_k, repeat_
|
|
48 |
**config['chat']
|
49 |
):
|
50 |
answer = output['choices'][0]['text']
|
|
|
|
|
51 |
print(output['choices'])
|
52 |
history[-1][1] += answer
|
53 |
# stream the response
|
|
|
48 |
**config['chat']
|
49 |
):
|
50 |
answer = output['choices'][0]['text']
|
51 |
+
if len(output['choices']) > 1 and answer == '\u200b':
|
52 |
+
answer = output['choices'][1]['text']
|
53 |
print(output['choices'])
|
54 |
history[-1][1] += answer
|
55 |
# stream the response
|