You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->compiledTemplateCache = new \SplObjectStorage();
149
-
150
151
}
151
152
152
153
/**
@@ -335,7 +336,7 @@ function ($key) {
335
336
if (
336
337
array_reduce($encodedTokens, function ($carry, $x) use ($encodedTokens) {
337
338
foreach ($xas$key => $value) {
338
-
if (count($value) !== count($encodedTokens[0][$key] ?? [])) {
339
+
if (count($value ?? []) !== count($encodedTokens[0][$key] ?? [])) {
339
340
returntrue;
340
341
}
341
342
}
@@ -610,10 +611,10 @@ function truncateHelper(array &$item, int $length): void
610
611
611
612
protectedfunctiongetDefaultChatTemplate(): string
612
613
{
613
-
if (!$this->warnedAboutChatTemplate) {
614
-
trigger_error("The default chat template is deprecated and will be removed in a future version. Please use the `chat_template` option instead.", E_USER_WARNING);
615
-
$this->warnedAboutChatTemplate = true;
616
-
}
614
+
// if (!$this->warnedAboutChatTemplate) {
615
+
// trigger_error("The default chat template is deprecated and will be removed in a future version. Please use the `chat_template` option instead.", E_USER_WARNING);
616
+
// $this->warnedAboutChatTemplate = true;
617
+
// }
617
618
618
619
return$this->defaultChatTemplate;
619
620
}
@@ -670,7 +671,8 @@ public function applyChatTemplate(
0 commit comments