fix: Enhances model display for Fal.ai image gen source (#4694) * fix: Enhances model display for Fal.ai image gen source * Move text processing to backend --------- Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>

b5083c7b233c196a1b412d083aac628643625d25

Kristian Schlikow <Dakraid@users.noreply.github.com>

Signed
1 files changed, +2 -1Showing whitespace changes
src/endpoints/stable-diffusion.js+2 -1
@@ -1322,7 +1322,8 @@ falai.post('/models', async (_request, response) => {
13221322
1323 const modelOptions = models1323 const modelOptions = models
1324 .sort((a, b) => a.title.localeCompare(b.title))1324 .sort((a, b) => a.title.localeCompare(b.title))
1325 .map(x => ({ value: x.modelUrl.split('fal-ai/')[1], text: x.title }));1325 .map(x => ({ value: x.modelUrl.split('fal-ai/')[1], text: x.title }))
1326 .map(x => ({ ...x, text: `${x.text} (${x.value})` }));
1326 return response.send(modelOptions);1327 return response.send(modelOptions);
1327 } catch (error) {1328 } catch (error) {
1328 console.error(error);1329 console.error(error);