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

Error in calling API using SDK #3

Closed
donvito opened this issue Jul 8, 2023 · 2 comments
Closed

Error in calling API using SDK #3

donvito opened this issue Jul 8, 2023 · 2 comments

Comments

@donvito
Copy link

donvito commented Jul 8, 2023

I am getting an error using the SDK. Any ideas what could be the cause of this?

{"error":"internal error","path":"$","code":"unexpected"}'

request:

        req = operations.CreateGenerationRequestBody(
        control_net=False,
        control_net_type=shared.ControlnetType.DEPTH,
        guidance_scale=7,
        height=512,
        width=512,
        model_id='LEONARDO',
        negative_prompt=negative_prompt,
        num_images=1,
        num_inference_steps=30,
        preset_style=shared.SdGenerationStyle.NONE,
        prompt=prompt,
        prompt_magic=False,
        public=False,
        scheduler=shared.SdGenerationSchedulers.DPM_SOLVER,
        sd_version=shared.SdVersions.V1_5,
        tiling=False,
    )`
@impactcolor
Copy link

You're printing out the response?

@silvamarcel
Copy link
Contributor

Issue should be fixed now.

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