From 2eb141c898cd1e512c64ff53d3167126738fb2a9 Mon Sep 17 00:00:00 2001 From: Kaosiso Ezealigo Date: Tue, 23 Apr 2024 14:23:47 +0100 Subject: [PATCH] fixed bug in chat template returning error in case of empty input --- agenta-web/src/components/Playground/Views/TestView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agenta-web/src/components/Playground/Views/TestView.tsx b/agenta-web/src/components/Playground/Views/TestView.tsx index 66412f2011..8619ddafdd 100644 --- a/agenta-web/src/components/Playground/Views/TestView.tsx +++ b/agenta-web/src/components/Playground/Views/TestView.tsx @@ -473,7 +473,7 @@ const App: React.FC = ({ optParams || [], appId || "", variant.baseId || "", - isChatVariant ? testItem.chat : [], + isChatVariant ? testItem.chat || [{}] : [], controller.signal, true, )