fix: handle enhance parameter in pollinations generate endpoint
| @@ -819,7 +819,6 @@ pollinations.post('/generate', async (request, response) => { | ||
| 819 | 819 | model: String(request.body.model), |
| 820 | 820 | negative_prompt: String(request.body.negative_prompt), |
| 821 | 821 | seed: String(request.body.seed >= 0 ? request.body.seed : Math.floor(Math.random() * 10_000_000)), |
| 822 | - enhance: String(request.body.enhance ?? false), | |
| 823 | 822 | width: String(request.body.width ?? 1024), |
| 824 | 823 | height: String(request.body.height ?? 1024), |
| 825 | 824 | nologo: String(true), |
| @@ -827,6 +826,9 @@ pollinations.post('/generate', async (request, response) => { | ||
| 827 | 826 | private: String(true), |
| 828 | 827 | referrer: 'sillytavern', |
| 829 | 828 | }); |
| 829 | + if (request.body.enhance) { | |
| 830 | + params.set('enhance', String(true)); | |
| 831 | + } | |
| 830 | 832 | promptUrl.search = params.toString(); |
| 831 | 833 | |
| 832 | 834 | console.info('Pollinations request URL:', promptUrl.toString()); |