Closed dsebastien closed 1 month ago
good to move forward by simplifying
in a future version, you can consider using the schema provided by the following operation to dynamically generate configuration forms: https://replicate.com/docs/reference/http#get-a-model-version
also, it will require special variables (and interpolation syntax) to bind the prompt with the expected field in the payload
Image generation models all support different settings with different values/scales/etc. AFAIK there's no clearly defined schema for each, so it's difficult to model
The current approach, with pre-defined settings for the image generation model won't work. Instead, we need a simple textarea with freeform input where users should insert a valid JSON object containing the configuration settings of the chosen model. Up to them to configure that correctly.
Example for https://replicate.com/black-forest-labs/flux-pro: