improve reasoning toggle tests and refactor model capability checks
This commit is contained in:
@@ -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); }));
|
||||
|
||||
Reference in New Issue
Block a user