(handler: ZooGatewayHandler)
| 140 | } |
| 141 | |
| 142 | async function drainCreateMessage(handler: ZooGatewayHandler) { |
| 143 | const stream = handler.createMessage("system", [{ role: "user", content: "hi" }]) |
| 144 | const out: unknown[] = [] |
| 145 | for await (const chunk of stream) { |
| 146 | out.push(chunk) |
| 147 | } |
| 148 | return out |
| 149 | } |
| 150 | |
| 151 | describe("constructor", () => { |
| 152 | it("allows construction without a session token (auth is enforced at request time)", () => { |
no test coverage detected