(customId: string)
| 70 | } |
| 71 | |
| 72 | function makeRequest(customId: string) { |
| 73 | return { |
| 74 | customId, |
| 75 | params: { |
| 76 | model: 'claude-haiku-4-5' as const, |
| 77 | max_tokens: 100, |
| 78 | messages: [{ role: 'user' as const, content: customId }], |
| 79 | }, |
| 80 | }; |
| 81 | } |
| 82 | |
| 83 | /** Simulate an async iterable of JSONL results */ |
| 84 | async function* asyncIterableOf<T>(items: T[]): AsyncIterable<T> { |