mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-04 15:52:30 +00:00
Prepared release v0.9.48 (#501)
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user