Where can I find the accepted format of an extension's API request body? #13030
-
There's an extension I use via the API, and the API example on the maintainer's repo shows passing only a list of values instead of a list of key-value pairs:
Where do I look to see if I can pass a list of key-value pairs instead? I'm not sure where this is defined. I'm also wondering about the format of the first key in the Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The args come from the The example in the README for that particular extension is actually outdated now because I haven't verified either but the my assumption is the case does need to match. It comes from the |
Beta Was this translation helpful? Give feedback.
The args come from the
process
method, here: https://github.com/hako-mikan/sd-webui-regional-prompter/blob/9fbea52380f6c31bea0b9f96cea494d4c7f559c1/scripts/rp.py#L337-L338The example in the README for that particular extension is actually outdated now because
lstop
andlstop_hr
are not accounted for in the params.I haven't verified either but the my assumption is the case does need to match. It comes from the
title
method. https://github.com/hako-mikan/sd-webui-regional-prompter/blob/9fbea52380f6c31bea0b9f96cea494d4c7f559c1/scripts/rp.py#L208-L209