(client: AnthropicBedrock)
| 55 | } |
| 56 | |
| 57 | async function dispatch(client: AnthropicBedrock): Promise<void> { |
| 58 | try { |
| 59 | const stream = await client.beta.messages.create(REQUEST_PARAMS) |
| 60 | for await (const _ of stream) { |
| 61 | /* drain */ |
| 62 | } |
| 63 | } catch { |
| 64 | /* ignore: only the captured request shape matters */ |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | describe('BedrockClient.buildRequest body.anthropic_beta cleanup', () => { |
| 69 | test('BUG REPRO: unmodified AnthropicBedrock puts anthropic_beta in body', async () => { |
no test coverage detected