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
149
}
151
150
152
151
/**
@@ -335,7 +334,7 @@ function ($key) {
335
334
if (
336
335
array_reduce($encodedTokens, function ($carry, $x) use ($encodedTokens) {
337
336
foreach ($xas$key => $value) {
338
-
if (count($value) !== count($encodedTokens[0][$key] ?? [])) {
337
+
if (count($value ?? []) !== count($encodedTokens[0][$key] ?? [])) {
339
338
returntrue;
340
339
}
341
340
}
@@ -610,10 +609,10 @@ function truncateHelper(array &$item, int $length): void
610
609
611
610
protectedfunctiongetDefaultChatTemplate(): string
612
611
{
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
-
}
612
+
// if (!$this->warnedAboutChatTemplate) {
613
+
// 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);
614
+
// $this->warnedAboutChatTemplate = true;
615
+
// }
617
616
618
617
return$this->defaultChatTemplate;
619
618
}
@@ -670,7 +669,7 @@ public function applyChatTemplate(
0 commit comments