[Bug]: API and website not consistent
What happened?
https://civitai.red/api/v1/model-versions/{version} and https://civitai.red/api/v1/models/{model} do not return the correct files names which are reflected on the website. This is especially harmful for managers like Lora Manager, because each file has the same filename while especially for checkpoints there are differences.
i.e. https://civitai.com/models/2218365/cyberrealistic-z-image-turbo?modelVersionId=3284136 each one: cyberrealisticZImage_v80 page: CyberRealistic_zit_v8.0_bf16.safetensors, CyberRealistic_zit_v8.0_mxfp8.safetensors, ...
Steps to reproduce the problem
See above
What should have happened?
API returns correct filenames and reflects what the user sees on the page
What platforms do you use to access the site?
Windows
What browsers do you use to access the site?
Google Chrome
Additional information, context and logs
EDIT: I am aware of the mini endpoint to retrieve the storage filename. But saving on additional api calls would make more sense instead of transforming it.
Source: civitai/civitai