diff --git a/gui/index.html b/gui/index.html index 017e27848..f54eae839 100644 --- a/gui/index.html +++ b/gui/index.html @@ -1,4 +1,4 @@ - +
diff --git a/gui/postcss.config.cjs b/gui/postcss.config.cjs index 33ad091d2..12a703d90 100644 --- a/gui/postcss.config.cjs +++ b/gui/postcss.config.cjs @@ -3,4 +3,4 @@ module.exports = { tailwindcss: {}, autoprefixer: {}, }, -} +}; diff --git a/gui/src/components/AddModelButtonSubtext.tsx b/gui/src/components/AddModelButtonSubtext.tsx index 8ff095926..4a5744e7d 100644 --- a/gui/src/components/AddModelButtonSubtext.tsx +++ b/gui/src/components/AddModelButtonSubtext.tsx @@ -9,7 +9,7 @@ function AddModelButtonSubtext() {{text}
+{text}
+
{titles.default}
-{titles.md}
+{titles.md}
+
Quickly get up and running using our API keys. After this trial, we'll help you set up your own models.
-+
To prevent abuse, we'll ask you to sign in to GitHub.
diff --git a/gui/src/components/gui/Alert.tsx b/gui/src/components/gui/Alert.tsx index 1e72e6386..e7546ffc7 100644 --- a/gui/src/components/gui/Alert.tsx +++ b/gui/src/components/gui/Alert.tsx @@ -39,10 +39,10 @@ function Alert({ children, type = "info" }: AlertProps) { const { Icon } = ALERT_CONFIGS[type]; return ( -
{stripImages(props.item.message.content)}
@@ -107,10 +108,11 @@ function StepContainer(props: StepContainerProps) {
/>
)}
{props.description}
@@ -179,7 +177,7 @@ function ModelCard(props: ModelCardProps) {{dimension.name}
+{dimension.name}
Select a provider below, or configure your own in{" "} @@ -142,7 +142,7 @@ function AddNewModel() { > ) : ( <> -
Select a model from the most popular options below, or configure @@ -152,8 +152,8 @@ function AddNewModel() { {Object.entries(modelsByProvider).map( ([providerTitle, modelConfigsByProviderTitle]) => ( -
+
Please resolve the following errors in your config.json file.
@@ -62,7 +62,7 @@ export default function ConfigErrorPage() { ))}
+
No configuration errors found.
)} diff --git a/gui/src/pages/gui/Chat.tsx b/gui/src/pages/gui/Chat.tsx index 27e9be2cd..9c14c4bd2 100644 --- a/gui/src/pages/gui/Chat.tsx +++ b/gui/src/pages/gui/Chat.tsx @@ -157,11 +157,11 @@ export function Chat() { const smoothScrollToBottom = useCallback(async () => { if (!topGuiDivRef.current) return; - const elem = topGuiDivRef.current + const elem = topGuiDivRef.current; elem.scrollTo({ top: elem.scrollHeight - elem.clientHeight, - behavior: 'smooth' - }) + behavior: "smooth", + }); setIsAtBottom(true); }, [topGuiDivRef, setIsAtBottom]); @@ -173,7 +173,7 @@ export function Chat() { useEffect(() => { setTimeout(() => { smoothScrollToBottom(); - }, 250) + }, 250); }, [smoothScrollToBottom, state.sessionId]); useEffect(() => { @@ -299,13 +299,7 @@ export function Chat() { setLocalStorage("mainTextEntryCounter", 1); } }, - [ - state.history, - state.contextItems, - defaultModel, - state, - streamResponse, - ], + [state.history, state.contextItems, defaultModel, state, streamResponse], ); useWebviewListener( @@ -386,7 +380,7 @@ export function Chat() { : true : stepsOpen[index]! } - onToggle={() => { }} + onToggle={() => {}} >0