Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for dynamic, model-specific settings #2

Open
dsebastien opened this issue Aug 19, 2024 · 1 comment
Open

Add support for dynamic, model-specific settings #2

dsebastien opened this issue Aug 19, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed ux

Comments

@dsebastien
Copy link
Owner

dsebastien commented Aug 19, 2024

When an image generation model is chosen, it should be possible to download the metadata of that model to discover how it can be configured: https://replicate.com/docs/reference/http#get-a-model-version

If we do that, then we could automatically generate the settings UI that matches the model in question. This would provide a better UX for configuring the plugin

Cfr #1

@dsebastien dsebastien added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers ux labels Aug 19, 2024
@dsebastien
Copy link
Owner Author

In addition, the settings should be stored under the key of the model name, enabling to keep the previous settings for a model when switching to another.

When a new model is chosen, the settings UI would change and would use the default values of the new model, or the previously saved ones for that model (if present).

Configuration wise, it could look like this:

imageGenerationConfiguration: {
  "black-forest-labs/flux-dev": {
     ...
  },
  "black-forest-labs/flux-pro": {
    ...
  },
  "stability-ai/sdxl": {
    ...
  }
}

@dsebastien dsebastien changed the title Add support for dynamic settings Add support for dynamic, model-specific settings Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed ux
Projects
None yet
Development

No branches or pull requests

1 participant