matthoffner
commited on
Commit
•
8abd12f
1
Parent(s):
3afb5fe
Update main.py
Browse files
main.py
CHANGED
@@ -68,7 +68,7 @@ async def generate_response(chat_chunks, llm):
|
|
68 |
'role': 'system',
|
69 |
'content': llm.detokenize(chat_chunk)
|
70 |
},
|
71 |
-
'finish_reason': 'stop' if
|
72 |
}
|
73 |
]
|
74 |
}
|
|
|
68 |
'role': 'system',
|
69 |
'content': llm.detokenize(chat_chunk)
|
70 |
},
|
71 |
+
'finish_reason': 'stop' if chat_chunk == "<|end|>" else 'unknown'
|
72 |
}
|
73 |
]
|
74 |
}
|