diff --git a/.github/workflows/template-tauri-build-macos-external.yml b/.github/workflows/template-tauri-build-macos-external.yml index 77d8f1e71..cce4ba078 100644 --- a/.github/workflows/template-tauri-build-macos-external.yml +++ b/.github/workflows/template-tauri-build-macos-external.yml @@ -96,7 +96,8 @@ jobs: - name: Build app run: | make build - env: + env: + NODE_OPTIONS: "--max-old-space-size=4196" APP_PATH: '.' - name: Upload Artifact diff --git a/.github/workflows/template-tauri-build-macos.yml b/.github/workflows/template-tauri-build-macos.yml index c1fdcaf19..bb7515f82 100644 --- a/.github/workflows/template-tauri-build-macos.yml +++ b/.github/workflows/template-tauri-build-macos.yml @@ -173,6 +173,7 @@ jobs: run: | make build env: + NODE_OPTIONS: "--max-old-space-size=4196" GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} APP_PATH: '.' POSTHOG_KEY: ${{ secrets.POSTHOG_KEY }} diff --git a/web-app/package.json b/web-app/package.json index bd87f937a..4117e35e1 100644 --- a/web-app/package.json +++ b/web-app/package.json @@ -39,6 +39,10 @@ "@radix-ui/react-slot": "1.2.0", "@radix-ui/react-switch": "1.2.2", "@radix-ui/react-tooltip": "1.2.4", + "@streamdown/cjk": "^1.0.1", + "@streamdown/code": "^1.0.1", + "@streamdown/math": "^1.0.1", + "@streamdown/mermaid": "^1.0.1", "@tabler/icons-react": "3.34.0", "@tailwindcss/vite": "4.1.4", "@tanstack/react-router": "^1.121.34", @@ -86,7 +90,7 @@ "remark-math": "6.0.0", "shiki": "^3.19.0", "sonner": "2.0.5", - "streamdown": "npm:@janhq/streamdown@^2.0.2", + "streamdown": "npm:@janhq/streamdown@^2.1.1", "tailwindcss": "4.1.17", "token.js": "npm:token.js-fork@0.7.31", "tw-animate-css": "1.2.8", diff --git a/web-app/src/containers/ChatInput.tsx b/web-app/src/containers/ChatInput.tsx index e776ffc07..04c1aff31 100644 --- a/web-app/src/containers/ChatInput.tsx +++ b/web-app/src/containers/ChatInput.tsx @@ -154,12 +154,6 @@ const ChatInput = ({ const [isDragOver, setIsDragOver] = useState(false) const [hasMmproj, setHasMmproj] = useState(false) const activeModels = useAppState(useShallow((state) => state.activeModels)) - const hasActiveModels = useMemo( - () => - activeModels.length > 0 && - activeModels.some((e) => e === selectedModel?.id), - [activeModels, selectedModel?.id] - ) // Jan Browser Extension hook const { @@ -1694,7 +1688,6 @@ const ChatInput = ({
+ Error generating response +
++ {error.message} +
+ {(error.message.toLowerCase().includes('context') && + (error.message.toLowerCase().includes('size') || + error.message.toLowerCase().includes('length') || + error.message.toLowerCase().includes('limit'))) || + error.message === OUT_OF_CONTEXT_SIZE ? ( + + ) : null} +