improve reasoning toggle tests and refactor model capability checks

This commit is contained in:
2026-09-21 21:46:22 +02:00
parent 6cb0cbcee0
commit a8e348e0c7
8 changed files with 217 additions and 75 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ test("thinking streams separately and survives reload, retry, branch and import"
const searchServer = createServer((_req, res) => {
searches++;
res.setHeader("Content-Type", "application/json");
res.end(JSON.stringify({results: [{title: "Latest news", url: "https://example.org/news", content: "Current news report"}]}));
res.end(JSON.stringify({results: [{title: "Latest news", url: "https://example.org/news", content: "Current news: researchers announced a successful satellite launch."}]}));
});
await new Promise(resolve => searchServer.listen(0, "127.0.0.1", resolve));
t.after(() => new Promise(resolve => { searchServer.closeAllConnections(); searchServer.close(resolve); }));