diff --git a/backend/apps/web/main.py b/backend/apps/web/main.py index 761a11cc9..bd14f4bda 100644 --- a/backend/apps/web/main.py +++ b/backend/apps/web/main.py @@ -57,7 +57,6 @@ app.include_router(utils.router, prefix="/utils", tags=["utils"]) async def get_status(): return { "status": True, - "version": WEBUI_VERSION, "auth": WEBUI_AUTH, "default_models": app.state.DEFAULT_MODELS, "default_prompt_suggestions": app.state.DEFAULT_PROMPT_SUGGESTIONS, diff --git a/package.json b/package.json index 20159f9c1..edc4762fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "open-webui", - "version": "0.0.1", + "version": "v1.0.0-alpha.101", "private": true, "scripts": { "dev": "vite dev --host", diff --git a/vite.config.ts b/vite.config.ts index bbf8c7da4..a4cf18e60 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,5 +2,8 @@ import { sveltekit } from '@sveltejs/kit/vite'; import { defineConfig } from 'vite'; export default defineConfig({ - plugins: [sveltekit()] + plugins: [sveltekit()], + define: { + APP_VERSION: JSON.stringify(process.env.npm_package_version) + } });