Boilerplate free tests (#277)

This commit is contained in:
Will Chen
2025-05-28 22:55:54 -07:00
committed by GitHub
parent 7a4ec22480
commit 509e044137
13 changed files with 196 additions and 181 deletions

View File

@@ -50,6 +50,10 @@ const CANNED_MESSAGE = `
More
EOM`;
app.get("/health", (req, res) => {
res.send("OK");
});
// Handle POST requests to /v1/chat/completions
app.post("/v1/chat/completions", (req, res) => {
const { stream = false, messages = [] } = req.body;