(mock: MockUpstream, since = 0)
| 424 | } |
| 425 | |
| 426 | function countMockChatRequests(mock: MockUpstream, since = 0): number { |
| 427 | return mock.requests.slice(since).filter((r) => r.path === "/v1/chat/completions").length; |
| 428 | } |
| 429 | |
| 430 | async function runLocalSuite(startProxy: StartProxy): Promise<boolean> { |
| 431 | console.log("\n=== Local deterministic e2e (mock upstream) ===\n"); |