Skip to content

Further Abstraction of API #388

@cwitkowitz

Description

@cwitkowitz

There is potentially more that could be abstract w.r.t. the Gradio and Stability clients.

Right now, the main difference seems to be whether requests are multipart or simple JSON.

Some thoughts:

  • Would it be possible to (cleanly) manage POST / GET requests with one standard?
  • It doesn't seem right to convert to a payload then right back to JSON for Stability client
    • Should probably turn controls directly to array first and then build payload

However, it may not be worthwhile to explore this until more third-party providers are going to be supported.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Tasks

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions