Skip to content

Commit 6dfca52

Browse files
authored
Merge pull request #432 from Oxygen-Low/fix-ai-horde-endpoint-6672414993036398145
Fix AI Horde default models by using native async API
2 parents 6082112 + f211214 commit 6dfca52

6 files changed

Lines changed: 5538 additions & 3137 deletions

File tree

.jules/bolt.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
## 2026-07-12 - [Express 5 Wildcard Route Crash]
2222

23-
**Learning:** In Express 5, the wildcard route path "*" is no longer supported and throws a PathError at runtime because path-to-regexp v8 require named parameters or regular expressions for wildcards.
24-
**Action:** Use the regular expression /.*/ for catch-all routes (e.g., for SPA routing) instead of the string "*".
23+
**Learning:** In Express 5, the wildcard route path "_" is no longer supported and throws a PathError at runtime because path-to-regexp v8 require named parameters or regular expressions for wildcards.
24+
**Action:** Use the regular expression /._/ for catch-all routes (e.g., for SPA routing) instead of the string "*".
2525

2626
## 2026-07-12 - [Optimizing List Filtering Performance]
2727

check_env.test.ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

client/components/apps/Chatbot.test.tsx

Lines changed: 25 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -173,37 +173,33 @@ describe("ChatbotApp", () => {
173173
expect(screen.queryByText("Select a chat to start")).not.toBeNull();
174174
});
175175

176-
it(
177-
"creates a new chat and sends a message",
178-
async () => {
179-
render(
180-
<ThemeProvider>
181-
<ChatbotApp />
182-
</ThemeProvider>,
183-
);
176+
it("creates a new chat and sends a message", async () => {
177+
render(
178+
<ThemeProvider>
179+
<ChatbotApp />
180+
</ThemeProvider>,
181+
);
184182

185-
// Create a new chat instead of relying on the mocked initial list
186-
const newChatButton = await screen.findByRole("button", {
187-
name: "New Chat",
188-
});
189-
fireEvent.click(newChatButton);
183+
// Create a new chat instead of relying on the mocked initial list
184+
const newChatButton = await screen.findByRole("button", {
185+
name: "New Chat",
186+
});
187+
fireEvent.click(newChatButton);
190188

191-
// Verify input is now visible
192-
const input = await screen.findByPlaceholderText(
193-
"Ask anything...",
194-
{},
195-
{ timeout: 5000 },
196-
);
197-
fireEvent.change(input, { target: { value: "Hi" } });
189+
// Verify input is now visible
190+
const input = await screen.findByPlaceholderText(
191+
"Ask anything...",
192+
{},
193+
{ timeout: 5000 },
194+
);
195+
fireEvent.change(input, { target: { value: "Hi" } });
198196

199-
// Use click on Send button
200-
const sendButton = screen.getByLabelText("Send message");
201-
fireEvent.click(sendButton);
197+
// Use click on Send button
198+
const sendButton = screen.getByLabelText("Send message");
199+
fireEvent.click(sendButton);
202200

203-
// Verify message sent and received
204-
await screen.findByText("Hi", {}, { timeout: 10000 });
205-
await screen.findByText("Hello from AI", {}, { timeout: 20000 });
206-
},
207-
30000,
208-
);
201+
// Verify message sent and received
202+
await screen.findByText("Hi", {}, { timeout: 10000 });
203+
await screen.findByText("Hello from AI", {}, { timeout: 20000 });
204+
}, 30000);
209205
});

0 commit comments

Comments
 (0)