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 -1Ignore whitespace
src/endpoints/stable-diffusion.js+2 -1
@@ -1322,7 +1322,8 @@ falai.post('/models', async (_request, response) => {
13221322
13231323 const modelOptions = models
13241324 .sort((a, b) => a.title.localeCompare(b.title))
13251325 .map(x => ({ value: x.modelUrl.split('fal-ai/')[1], text: x.title }));
1326+ .map(x => ({ ...x, text: `${x.text} (${x.value})` }));
13261327 return response.send(modelOptions);
13271328 } catch (error) {
13281329 console.error(error);