Skip to content

Commit 2f93956

Browse files
authored
fix CI (#1884)
* fix CI * add playwright as dev dep * lint * clean up spaces-config with community tools * try to make mongo run?
1 parent 8c0326f commit 2f93956

File tree

22 files changed

+140
-120
lines changed

22 files changed

+140
-120
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
### Models ###
55
# Models are sourced exclusively from an OpenAI-compatible base URL.
66
# Example: https://router.huggingface.co/v1
7-
OPENAI_BASE_URL=
7+
OPENAI_BASE_URL=https://router.huggingface.co/v1
88

99
# Canonical auth token for any OpenAI-compatible provider
1010
OPENAI_API_KEY=#your provider API key (works for HF router, OpenAI, LM Studio, etc.)

.eslintrc.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ module.exports = {
2424
extraFileExtensions: [".svelte"],
2525
},
2626
rules: {
27+
"no-empty": "off",
2728
"require-yield": "off",
2829
"@typescript-eslint/no-explicit-any": "error",
2930
"@typescript-eslint/no-non-null-assertion": "error",

.github/workflows/lint-and-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
cache: "npm"
4040
- run: |
4141
npm ci
42+
npx playwright install
4243
- name: "Tests"
4344
run: |
4445
npm run test

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN touch /app/.env.local
2121

2222
USER root
2323
RUN apt-get update
24-
RUN apt-get install -y libgomp1
24+
RUN apt-get install -y libgomp1 libcurl4
2525

2626
# ensure npm cache dir exists before adjusting ownership
2727
RUN mkdir -p /home/user/.npm && chown -R 1000:1000 /home/user/.npm

PRIVACY.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ Security and routing facts
2626

2727
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.
2828

29-
3029
## Technical details
3130

3231
[![chat-ui](https://img.shields.io/github/stars/huggingface/chat-ui)](https://github.com/huggingface/chat-ui)

package-lock.json

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"js-yaml": "^4.1.0",
4949
"minimist": "^1.2.8",
5050
"mongodb-memory-server": "^10.1.2",
51+
"playwright": "^1.55.1",
5152
"prettier": "^3.5.3",
5253
"prettier-plugin-svelte": "^3.2.6",
5354
"prettier-plugin-tailwindcss": "^0.6.11",

src/lib/components/NavMenu.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
4343
let {
4444
conversations = $bindable(),
45-
canLogin,
4645
user,
4746
p = $bindable(0),
4847
ondeleteConversation,

src/lib/components/WelcomeModal.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<script lang="ts">
22
import Modal from "$lib/components/Modal.svelte";
3-
import Logo from "$lib/components/icons/Logo.svelte";
43
import IconOmni from "$lib/components/icons/IconOmni.svelte";
54
import { usePublicConfig } from "$lib/utils/PublicConfig.svelte";
65

src/lib/components/chat/ChatWindow.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,9 @@
298298
299299
const blob = await response.blob();
300300
const name = attachment.src.split("/").pop() ?? "attachment";
301-
loadedFiles.push(new File([blob], name, { type: blob.type || "application/octet-stream" }));
301+
loadedFiles.push(
302+
new File([blob], name, { type: blob.type || "application/octet-stream" })
303+
);
302304
} catch (err) {
303305
console.error("Error loading attachment:", err);
304306
}

0 commit comments

Comments
 (0)