* Checks if the request is for the TTS generate endpoint. * This endpoint passes chatflowId in the request body rather than the URL path. * @param url - The request URL * @returns boolean - True if it's the TTS generate endpoint
(url: string)
| 115 | * @returns boolean - True if it's the TTS generate endpoint |
| 116 | */ |
| 117 | function isTTSGenerateRequest(url: string): boolean { |
| 118 | return url.split('?')[0] === TTS_GENERATE_PATH |
| 119 | } |
| 120 | |
| 121 | /** |
| 122 | * Get the custom error message for unauthorized origin |