Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
fix: select nono assistant remote provider
Faisal Amir68bf16e5dd51
diff --git a/web-app/src/containers/ChatInput.tsx b/web-app/src/containers/ChatInput.tsxindex e29b91442..874435fd9 100644--- a/web-app/src/containers/ChatInput.tsx+++ b/web-app/src/containers/ChatInput.tsx@@ -1569,7 +1569,7 @@ const ChatInput = memo(function ChatInput({{assistants.length > 0 ? (assistants.map((assistant) => {const isSelected = selectedAssistant?.id === assistant.id ||- currentThread?.assistants?.some((a) => a.id === assistant.id)+ (assistant && currentThread?.assistants?.some((a) => a.id === assistant.id))return (<DropdownMenuItemkey={assistant.id}diff --git a/web-app/src/hooks/useThreads.ts b/web-app/src/hooks/useThreads.tsindex 0c8616ec6..b12da607a 100644--- a/web-app/src/hooks/useThreads.ts+++ b/web-app/src/hooks/useThreads.ts@@ -356,14 +356,14 @@ export const useThreads = create<ThreadState>()((set, get) => ({.threads().updateThread({...currentThread,- assistants: [{ ...assistant, model: currentThread.model }],+ assistants: assistant ? [{ ...assistant, model: currentThread.model }] : [],})return {threads: {...state.threads,[state.currentThreadId as string]: {...state.threads[state.currentThreadId as string],- assistants: [assistant],+ assistants: assistant ? [assistant] : [],updated: Date.now() / 1000,},},