(endpoint: string, requestId: string, path: 'status' | 'response')
| 62 | } |
| 63 | |
| 64 | function falQueueUrl(endpoint: string, requestId: string, path: 'status' | 'response'): string { |
| 65 | return `https://queue.fal.run/${endpoint}/requests/${requestId}/${path}` |
| 66 | } |
| 67 | |
| 68 | function falErrorMessage(error: unknown): string { |
| 69 | if (typeof error === 'string') return error |