-
Notifications
You must be signed in to change notification settings - Fork 14
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
Error with Stability API: Objects in multi-part form content in API spec generates invalid code #55
Comments
Hmm that's a difficult one because here we probably need to flatten the structure we get into a list of |
Example of how the generated code should look like: for (part, i) in flatten textPrompts do
yield RequestPart.multipartFormData($"text_prompts[{i}].text", part.text)
yield RequestPart.multipartFormData($"text_prompts[{i}].weight", part.weight)
|
(The fix for #56 is unrelated to this - FYI) |
An example of this is in the stability API, which produces invalid code (compile errors).
config file:
Errors:
I'm not sure how we go about solving this - issue seems to be with their API defining objects in multi-part forms.
You can view an example in their API docs here:
https://platform.stability.ai/docs/api-reference#tag/Image-to-Image/operation/imageToImage - see the
text_prompts
parameter.I can give this a bash if you can outline the steps to solve it.
The text was updated successfully, but these errors were encountered: