From 92f2944cdcd4b61f4acbf4869117e8096d251c46 Mon Sep 17 00:00:00 2001 From: Francisco Javier Arceo Date: Tue, 19 Aug 2025 11:43:40 -0400 Subject: [PATCH] updated Signed-off-by: Francisco Javier Arceo --- llama_stack/ui/app/chat-playground/page.tsx | 20 +++++++++++-------- .../[id]/files/[fileId]/contents/page.tsx | 2 ++ 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/llama_stack/ui/app/chat-playground/page.tsx b/llama_stack/ui/app/chat-playground/page.tsx index 335efd842..d73d8bf43 100644 --- a/llama_stack/ui/app/chat-playground/page.tsx +++ b/llama_stack/ui/app/chat-playground/page.tsx @@ -194,9 +194,9 @@ export default function ChatPlaygroundPage() { ); setInput(""); - // Use the helper function with the content - await handleSubmitWithContent(userMessage.content); -}; + // Use the helper function with the content + await handleSubmitWithContent(userMessage.content); + }; const handleSubmitWithContent = async (content: string) => { setIsGenerating(true); @@ -264,11 +264,15 @@ export default function ChatPlaygroundPage() { createdAt: new Date(), }; - setCurrentSession(prev => prev ? { - ...prev, - messages: [...prev.messages, assistantMessage], - updatedAt: Date.now() - } : null); + setCurrentSession(prev => + prev + ? { + ...prev, + messages: [...prev.messages, assistantMessage], + updatedAt: Date.now(), + } + : null + ); let fullContent = ""; for await (const chunk of response) { diff --git a/llama_stack/ui/app/logs/vector-stores/[id]/files/[fileId]/contents/page.tsx b/llama_stack/ui/app/logs/vector-stores/[id]/files/[fileId]/contents/page.tsx index 5b862ff31..3d714a480 100644 --- a/llama_stack/ui/app/logs/vector-stores/[id]/files/[fileId]/contents/page.tsx +++ b/llama_stack/ui/app/logs/vector-stores/[id]/files/[fileId]/contents/page.tsx @@ -52,8 +52,10 @@ export default function ContentsListPage() { const [file, setFile] = useState(null); const [contents, setContents] = useState([]); const [isLoadingStore, setIsLoadingStore] = useState(true); + const [isLoadingFile, setIsLoadingFile] = useState(true); const [isLoadingContents, setIsLoadingContents] = useState(true); const [errorStore, setErrorStore] = useState(null); + const [errorFile, setErrorFile] = useState(null); const [errorContents, setErrorContents] = useState(null); useEffect(() => {