(
options?: Partial<{ model: string; vertexai: boolean; stream: boolean }>,
)
| 34 | } |
| 35 | |
| 36 | function createProvider( |
| 37 | options?: Partial<{ model: string; vertexai: boolean; stream: boolean }>, |
| 38 | ): GoogleGenAIChatProvider { |
| 39 | return new GoogleGenAIChatProvider({ |
| 40 | model: options?.model ?? 'gemini-2.5-flash', |
| 41 | apiKey: 'test-key', |
| 42 | vertexai: options?.vertexai, |
| 43 | stream: options?.stream, |
| 44 | }); |
| 45 | } |
| 46 | |
| 47 | /** Capture the request body by mocking the client's generateContentStream. */ |
| 48 | async function captureRequestBody( |
no outgoing calls
no test coverage detected