Check whether the output is a complete sentence.
(output: str)
| 311 | |
| 312 | |
| 313 | def is_sentence_complete(output: str): |
| 314 | """Check whether the output is a complete sentence.""" |
| 315 | end_symbols = (".", "?", "!", "...", "。", "?", "!", "…", '"', "'", "”") |
| 316 | return output.endswith(end_symbols) |
| 317 | |
| 318 | |
| 319 | # Models don't use the same configuration key for determining the maximum |
no outgoing calls
no test coverage detected
searching dependent graphs…