fix bug in making thinking tokens italic
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def respond(
|
|
45 |
for message in completion:
|
46 |
delta = message['choices'][0]['delta']
|
47 |
if 'content' in delta:
|
48 |
-
|
49 |
formatted_response = re.sub(r'<think>(.*?)</think>', r'*\1*', response)
|
50 |
yield formatted_response
|
51 |
|
|
|
45 |
for message in completion:
|
46 |
delta = message['choices'][0]['delta']
|
47 |
if 'content' in delta:
|
48 |
+
response += delta['content']
|
49 |
formatted_response = re.sub(r'<think>(.*?)</think>', r'*\1*', response)
|
50 |
yield formatted_response
|
51 |
|