test: cover provider timeout bare hostnames

This commit is contained in:
Shakker
2026-05-19 17:13:36 +01:00
committed by Shakker
parent 9e9feb52f4
commit 6899eff155
@@ -50,6 +50,15 @@ describe("resolveLlmIdleTimeoutMs", () => {
expect(resolveLlmIdleTimeoutMs({ modelRequestTimeoutMs: 300_000 })).toBe(300_000);
});
it("honors explicit provider timeouts for self-hosted bare hostnames", () => {
expect(
resolveLlmIdleTimeoutMs({
model: { baseUrl: "http://cerebro-mac:8080/v1" },
modelRequestTimeoutMs: 600_000,
}),
).toBe(600_000);
});
it("honors short explicit provider request timeouts", () => {
expect(resolveLlmIdleTimeoutMs({ modelRequestTimeoutMs: 30_000 })).toBe(30_000);
});