( endpoint: string, requestId: string, path: 'response' | 'status' )
| 1161 | } |
| 1162 | |
| 1163 | function buildFalAIQueueUrl( |
| 1164 | endpoint: string, |
| 1165 | requestId: string, |
| 1166 | path: 'response' | 'status' |
| 1167 | ): string { |
| 1168 | return `https://queue.fal.run/${endpoint}/requests/${requestId}/${path}` |
| 1169 | } |
| 1170 | |
| 1171 | async function generateWithFalAI( |
| 1172 | apiKey: string, |