Skip to content

API payload parameters are ignored (e.g. steps does not override default value) #1179

@huyphuong99

Description

@huyphuong99

When running sd_server to host the API, parameters passed via the request payload are ignored.
For example, even when calling the API with steps=1, the server still uses the default value (steps=20) instead of overriding it with the value provided in the payload.

Steps to reproduce

  1. Start sd_server
  2. Call the API endpoint with the following JSON payload:
    {
    "prompt": "text",
    "steps": 1
    }
  3. Check the server logs or the generated result

Expected behavior
The server should respect and use the parameters provided in the request payload.
In this case, steps should be set to 1 instead of the default value.

Actual behavior
The server always falls back to the default value (steps=20), even when a different value is explicitly provided in the payload.

Could you please help check this issue and let me know if this is an expected behavior or a bug?
Thank you very much for your time and support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions