(_params: LLMChatParams)
| 35 | modelName: 'mock', |
| 36 | isRetryableError: (e) => isRetryableGenerateError(e), |
| 37 | async chat(_params: LLMChatParams): Promise<LLMChatResponse> { |
| 38 | calls += 1; |
| 39 | if (calls === 1) throw new APIConnectionError('terminated'); |
| 40 | return okResponse(); |
| 41 | }, |
| 42 | }; |
| 43 | |
| 44 | const response = await chatWithRetry(makeInput(llm, new AbortController().signal)); |
nothing calls this directly
no test coverage detected