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

Promptgen API #7

Open
dumdiedum opened this issue Jan 28, 2023 · 3 comments
Open

Promptgen API #7

dumdiedum opened this issue Jan 28, 2023 · 3 comments

Comments

@dumdiedum
Copy link

dumdiedum commented Jan 28, 2023

Thanks for your work!!

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

ngocnv371 added a commit to ngocnv371/stable-diffusion-webui-promptgen that referenced this issue May 8, 2023
@ngocnv371
Copy link

I took a shot at this with this PR #14

@mughal41
Copy link

@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
Copy link

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants