AUTOMATIC1111 / stable-diffusion-webui-promptgen

stable-diffusion-webui-promptgen
MIT License
484 stars 93 forks source link

Promptgen API #7

Open dumdiedum opened 1 year ago

dumdiedum commented 1 year ago

Thanks for your work!!

Is it possible to add an api definition, which will extend the current a1111 api?

ngocnv371 commented 1 year ago

I took a shot at this with this PR #14

mughal41 commented 6 months ago

@ngocnv371 i ran into a problem while running the API, can we specify which model to use ?? in API i tried extending the GenerateRequest class but it didn't work, getting error i.e. AttributeError: type object 'GenerateRequest' has no attribute 'model'

image

ngocnv371 commented 6 months ago

@mughal41 I'm sorry dude, it was so long ago that my brain wiped all relevant info. But it looks like you're trying to modify the request, you should make sure what you're adding is relevant with the BaseModel. If you want it to load a specific model you need to add that logic handler too, not just squeze it in GeenrateRequest. Good luck and push a PR once you done?