Spaces:
Running
Running
File size: 456 Bytes
ceb70c7 2a85ae5 ceb70c7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
#
# SPDX-FileCopyrightText: Hadad <hadad@linuxmail.org>
# SPDX-License-Identifier: Apache-2.0
#
def reasoning_interfaces(text, current_length=0):
if current_length < len(text):
reasoning_steps = text[:current_length]
if current_length > 0 and not reasoning_steps.endswith((
'<br>',
'<br><br>'
)):
reasoning_steps += '...'
return reasoning_steps
return text |