(host: string)
| 12 | // SAME classified HttpClientError as the `this.http.*` path — Dify's message/hint, the request |
| 13 | // method/url, and the raw body — straight from a plain `orpc.x()` call, with no per-call wrapper. |
| 14 | function orpcClient(host: string) { |
| 15 | // retryAttempts: 0 so the 5xx case fails fast instead of burning the backoff budget. |
| 16 | const http = createHttpClient({ baseURL: openAPIBase(host), bearer: 'dfoa_test', retryAttempts: 0 }) |
| 17 | return createOpenApiClient(http) |
| 18 | } |
| 19 | |
| 20 | async function catchErr(run: () => Promise<unknown>): Promise<unknown> { |
| 21 | try { |
no test coverage detected