diff --git a/.env b/.env index 185d2df5ecd..274f01a4fa2 100644 --- a/.env +++ b/.env @@ -4,7 +4,7 @@ ### Models ### # Models are sourced exclusively from an OpenAI-compatible base URL. # Example: https://router.huggingface.co/v1 -OPENAI_BASE_URL= +OPENAI_BASE_URL=https://router.huggingface.co/v1 # Canonical auth token for any OpenAI-compatible provider OPENAI_API_KEY=#your provider API key (works for HF router, OpenAI, LM Studio, etc.) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index b1aeb0ef85f..9c0da75f9cc 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -24,6 +24,7 @@ module.exports = { extraFileExtensions: [".svelte"], }, rules: { + "no-empty": "off", "require-yield": "off", "@typescript-eslint/no-explicit-any": "error", "@typescript-eslint/no-non-null-assertion": "error", diff --git a/.github/workflows/lint-and-test.yml b/.github/workflows/lint-and-test.yml index b8c0467cff6..1c3f3708d39 100644 --- a/.github/workflows/lint-and-test.yml +++ b/.github/workflows/lint-and-test.yml @@ -39,6 +39,7 @@ jobs: cache: "npm" - run: | npm ci + npx playwright install - name: "Tests" run: | npm run test diff --git a/Dockerfile b/Dockerfile index c58d3827dcd..c0edf494fa1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,7 @@ RUN touch /app/.env.local USER root RUN apt-get update -RUN apt-get install -y libgomp1 +RUN apt-get install -y libgomp1 libcurl4 # ensure npm cache dir exists before adjusting ownership RUN mkdir -p /home/user/.npm && chown -R 1000:1000 /home/user/.npm diff --git a/PRIVACY.md b/PRIVACY.md index accfbda722a..fc3bbfc8270 100644 --- a/PRIVACY.md +++ b/PRIVACY.md @@ -26,7 +26,6 @@ Security and routing facts External providers are responsible for their own security and data handling. Please consult each provider’s respective security and privacy policies via the Inference Providers documentation linked above. - ## Technical details [![chat-ui](https://img.shields.io/github/stars/huggingface/chat-ui)](https://github.com/huggingface/chat-ui) diff --git a/package-lock.json b/package-lock.json index ba7406c0a0e..31640d7e6ae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -74,6 +74,7 @@ "js-yaml": "^4.1.0", "minimist": "^1.2.8", "mongodb-memory-server": "^10.1.2", + "playwright": "^1.55.1", "prettier": "^3.5.3", "prettier-plugin-svelte": "^3.2.6", "prettier-plugin-tailwindcss": "^0.6.11", @@ -7968,6 +7969,38 @@ "dev": true, "license": "MIT" }, + "node_modules/playwright": { + "version": "1.55.1", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.55.1.tgz", + "integrity": "sha512-cJW4Xd/G3v5ovXtJJ52MAOclqeac9S/aGGgRzLabuF8TnIb6xHvMzKIa6JmrRzUkeXJgfL1MhukP0NK6l39h3A==", + "devOptional": true, + "license": "Apache-2.0", + "dependencies": { + "playwright-core": "1.55.1" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "fsevents": "2.3.2" + } + }, + "node_modules/playwright-core": { + "version": "1.55.1", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.55.1.tgz", + "integrity": "sha512-Z6Mh9mkwX+zxSlHqdr5AOcJnfp+xUWLCt9uKV18fhzA8eyxUd8NUWzAjxUh55RZKSYwDGX0cfaySdhZJGMoJ+w==", + "devOptional": true, + "license": "Apache-2.0", + "bin": { + "playwright-core": "cli.js" + }, + "engines": { + "node": ">=18" + } + }, "node_modules/postcss": { "version": "8.5.4", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.4.tgz", diff --git a/package.json b/package.json index d033053c0f9..f9f2c8bbd61 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,7 @@ "js-yaml": "^4.1.0", "minimist": "^1.2.8", "mongodb-memory-server": "^10.1.2", + "playwright": "^1.55.1", "prettier": "^3.5.3", "prettier-plugin-svelte": "^3.2.6", "prettier-plugin-tailwindcss": "^0.6.11", diff --git a/src/lib/components/NavMenu.svelte b/src/lib/components/NavMenu.svelte index efcfb2b6ab3..9d6ced29bd7 100644 --- a/src/lib/components/NavMenu.svelte +++ b/src/lib/components/NavMenu.svelte @@ -42,7 +42,6 @@ let { conversations = $bindable(), - canLogin, user, p = $bindable(0), ondeleteConversation, diff --git a/src/lib/components/WelcomeModal.svelte b/src/lib/components/WelcomeModal.svelte index 9db568253fb..b6f945550b8 100644 --- a/src/lib/components/WelcomeModal.svelte +++ b/src/lib/components/WelcomeModal.svelte @@ -1,6 +1,5 @@