feat: stable-diffusion refactored, replace websocket api with sdapi

This commit is contained in:
RockYang
2024-03-26 18:23:08 +08:00
parent 49b5906bc7
commit 342b76f666
11 changed files with 191 additions and 335 deletions

View File

@@ -17,5 +17,6 @@ type File struct {
type Uploader interface {
PutFile(ctx *gin.Context, name string) (File, error)
PutImg(imageURL string, useProxy bool) (string, error)
PutBase64(imageData string) (string, error)
Delete(fileURL string) error
}