From 18b6f5b6749243a81338923823ce175be46e4758 Mon Sep 17 00:00:00 2001
From: Willie Zutz
Date: Sat, 15 Feb 2025 16:07:19 -0700
Subject: [PATCH] Updated formatting
---
ui/app/settings/page.tsx | 37 +++++++++++++++++++++++-----------
ui/components/ChatWindow.tsx | 5 ++++-
ui/components/SearchImages.tsx | 3 ++-
ui/components/SearchVideos.tsx | 3 ++-
ui/lib/actions.ts | 3 ++-
5 files changed, 35 insertions(+), 16 deletions(-)
diff --git a/ui/app/settings/page.tsx b/ui/app/settings/page.tsx
index 37a2f6b..26cdbd6 100644
--- a/ui/app/settings/page.tsx
+++ b/ui/app/settings/page.tsx
@@ -116,7 +116,7 @@ const Page = () => {
const [contextWindowSize, setContextWindowSize] = useState(2048);
const [isCustomContextWindow, setIsCustomContextWindow] = useState(false);
const predefinedContextSizes = [
- 1024, 2048, 3072, 4096, 8192, 16384, 32768, 65536, 131072
+ 1024, 2048, 3072, 4096, 8192, 16384, 32768, 65536, 131072,
];
useEffect(() => {
@@ -178,9 +178,13 @@ const Page = () => {
setAutomaticVideoSearch(
localStorage.getItem('autoVideoSearch') === 'true',
);
- const storedContextWindow = parseInt(localStorage.getItem('ollamaContextWindow') ?? '2048');
+ const storedContextWindow = parseInt(
+ localStorage.getItem('ollamaContextWindow') ?? '2048',
+ );
setContextWindowSize(storedContextWindow);
- setIsCustomContextWindow(!predefinedContextSizes.includes(storedContextWindow));
+ setIsCustomContextWindow(
+ !predefinedContextSizes.includes(storedContextWindow),
+ );
setIsLoading(false);
};
@@ -566,7 +570,11 @@ const Page = () => {
Chat Context Window Size