From a38373e07a1c6055203f6a2905e1732a3917584a Mon Sep 17 00:00:00 2001 From: pablodanswer Date: Mon, 2 Dec 2024 13:36:29 -0800 Subject: [PATCH] post rebase cleanup --- web/src/app/chat/ChatPage.tsx | 26 ++++++++++--------- .../app/chat/documentSidebar/ChatFilters.tsx | 13 +++++++++- 2 files changed, 26 insertions(+), 13 deletions(-) diff --git a/web/src/app/chat/ChatPage.tsx b/web/src/app/chat/ChatPage.tsx index def2872328a..df08f8b4b75 100644 --- a/web/src/app/chat/ChatPage.tsx +++ b/web/src/app/chat/ChatPage.tsx @@ -243,10 +243,10 @@ export function ChatPage({ (assistant) => assistant.id === existingChatSessionAssistantId ) : defaultAssistantId !== undefined - ? availableAssistants.find( - (assistant) => assistant.id === defaultAssistantId - ) - : undefined + ? availableAssistants.find( + (assistant) => assistant.id === defaultAssistantId + ) + : undefined ); // Gather default temperature settings const search_param_temperature = searchParams.get( @@ -256,12 +256,12 @@ export function ChatPage({ const defaultTemperature = search_param_temperature ? parseFloat(search_param_temperature) : selectedAssistant?.tools.some( - (tool) => - tool.in_code_tool_id === "SearchTool" || - tool.in_code_tool_id === "InternetSearchTool" - ) - ? 0 - : 0.7; + (tool) => + tool.in_code_tool_id === "SearchTool" || + tool.in_code_tool_id === "InternetSearchTool" + ) + ? 0 + : 0.7; const setSelectedAssistantFromId = (assistantId: number) => { // NOTE: also intentionally look through available assistants here, so that @@ -1158,8 +1158,8 @@ export function ChatPage({ const currentAssistantId = alternativeAssistantOverride ? alternativeAssistantOverride.id : alternativeAssistant - ? alternativeAssistant.id - : liveAssistant.id; + ? alternativeAssistant.id + : liveAssistant.id; resetInputBar(); let messageUpdates: Message[] | null = null; @@ -1985,6 +1985,7 @@ export function ChatPage({
>; } export const ChatFilters = forwardRef( @@ -43,6 +51,7 @@ export const ChatFilters = forwardRef( isOpen, ccPairs, tags, + setPresentingDocument, documentSets, showFilters, }, @@ -134,6 +143,8 @@ export const ChatFilters = forwardRef( }`} >