processing

This commit is contained in:
Nicolas Mowen 2026-02-12 19:04:40 -07:00
parent 6fdfe22f8c
commit 56b3ebe791
3 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,5 @@
{ {
"placeholder": "Ask anything...", "placeholder": "Ask anything...",
"error": "Something went wrong. Please try again." "error": "Something went wrong. Please try again.",
"processing": "Processing..."
} }

View File

@ -60,6 +60,11 @@ export default function ChatPage() {
{msg.content} {msg.content}
</div> </div>
))} ))}
{isLoading && (
<div className="self-start rounded-lg bg-muted px-3 py-2 text-muted-foreground">
{t("processing")}
</div>
)}
{error && ( {error && (
<p className="self-start text-sm text-destructive" role="alert"> <p className="self-start text-sm text-destructive" role="alert">
{error} {error}

View File

@ -4,7 +4,7 @@ import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc"; import react from "@vitejs/plugin-react-swc";
import monacoEditorPlugin from "vite-plugin-monaco-editor"; import monacoEditorPlugin from "vite-plugin-monaco-editor";
const proxyHost = process.env.PROXY_HOST || "1ocalhost:5000"; const proxyHost = process.env.PROXY_HOST || "192.168.50.106:5002";
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({