Prepared release v0.9.48 (#501)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2025-06-11 10:20:49 +02:00
1 parent 7c4ddf1164
commit 4aeb51c9f1
5 files changed
+22 -21

No files matched your search

@@ -6,7 +6,7 @@ public static class StringExtensions
{
const string OPEN_TAG = "<think>";
const string CLOSE_TAG = "</think>";
if (string.IsNullOrEmpty(input) || !input.StartsWith(OPEN_TAG))
if (string.IsNullOrWhiteSpace(input) || !input.StartsWith(OPEN_TAG, StringComparison.Ordinal))
return input;
var endIndex = input.IndexOf(CLOSE_TAG, StringComparison.Ordinal);