Commit graph

78 commits

Author SHA1 Message Date
AUTOMATIC1111
41e242b220
Merge pull request #4733 from MaikoTan/api-authorization
feat: add http basic authentication for api
2022-11-19 15:20:03 +03:00
AUTOMATIC
5a6387e189 make it possible to change models etc by editing options using API 2022-11-19 15:15:24 +03:00
Maiko Tan
336c341a7c
Merge branch 'master' into api-authorization 2022-11-19 20:13:07 +08:00
AUTOMATIC1111
84a6f211d4
Merge pull request #4358 from bamarillo/master
[API][Feature] Add Skip endpoint
2022-11-19 14:50:02 +03:00
AUTOMATIC
cdc8020d13 change StableDiffusionProcessing to internally use sampler name instead of sampler index 2022-11-19 12:01:51 +03:00
Maiko Sinkyaet Tan
8f2ff861d3
feat: add http basic authentication for api 2022-11-15 16:12:34 +08:00
snowmeow2
67c8e11be7 Adding DeepDanbooru to the interrogation API 2022-11-07 02:32:06 +08:00
AUTOMATIC1111
07d1bd4267
Merge branch 'master' into roy.add_simple_interrogate_api 2022-11-06 11:27:54 +03:00
Bruno Seoane
7f63980e47 Remove unnecesary return 2022-11-05 19:09:13 -03:00
Bruno Seoane
3c72055c22 Add skip endpoint 2022-11-05 19:05:15 -03:00
Bruno Seoane
0ebf66b575 Fix set config endpoint 2022-11-05 19:00:47 -03:00
Bruno Seoane
99b05addb1 Fix options endpoint not showing the full list of options 2022-11-05 18:46:47 -03:00
AUTOMATIC1111
2e604233fd
Merge pull request #4329 from Blucknote/patch-1
Python 3.8 typing compatibility
2022-11-05 17:23:22 +03:00
evshiron
b6cfaaa20b Merge branch 'master' into fix/encode-pnginfo 2022-11-05 22:12:20 +08:00
Evgeniy
a170e3d222
Python 3.8 typing compatibility
Solves problems with

```Traceback (most recent call last):
  File "webui.py", line 201, in <module>
    webui()
  File "webui.py", line 178, in webui
    create_api(app)
  File "webui.py", line 117, in create_api
    from modules.api.api import Api
  File "H:\AIart\stable-diffusion\stable-diffusion-webui\modules\api\api.py", line 9, in <module>
    from modules.api.models import *
  File "H:\AIart\stable-diffusion\stable-diffusion-webui\modules\api\models.py", line 194, in <module>
    class SamplerItem(BaseModel):
  File "H:\AIart\stable-diffusion\stable-diffusion-webui\modules\api\models.py", line 196, in SamplerItem
    aliases: list[str] = Field(title="Aliases")
TypeError: 'type' object is not subscriptable```

and

```Traceback (most recent call last):
  File "webui.py", line 201, in <module>
    webui()
  File "webui.py", line 178, in webui
    create_api(app)
  File "webui.py", line 117, in create_api
    from modules.api.api import Api
  File "H:\AIart\stable-diffusion\stable-diffusion-webui\modules\api\api.py", line 9, in <module>
    from modules.api.models import *
  File "H:\AIart\stable-diffusion\stable-diffusion-webui\modules\api\models.py", line 194, in <module>
    class SamplerItem(BaseModel):
  File "H:\AIart\stable-diffusion\stable-diffusion-webui\modules\api\models.py", line 197, in SamplerItem
    options: dict[str, str] = Field(title="Options")
TypeError: 'type' object is not subscriptable```
2022-11-05 17:06:56 +03:00
Billy Cao
ebce0c57c7 Use typing.Optional instead of | to add support for Python 3.9 and below. 2022-11-05 11:38:24 +08:00
evshiron
73e1cd6f53 Merge branch 'master' into fix/encode-pnginfo 2022-11-05 01:43:02 +08:00
AUTOMATIC
116bcf730a disable setting options via API until it is fixed by the author 2022-11-04 16:49:05 +03:00
AUTOMATIC1111
e9c767d8db
Merge branch 'master' into 7flash/fix-api-compatibility 2022-11-04 11:00:32 +03:00
AUTOMATIC1111
371c4b990e
Merge pull request #4218 from bamarillo/utils-endpoints
[API][Feature] Utils endpoints
2022-11-04 10:46:51 +03:00
digburn
8eb64dab3e
fix: correct default val of upscale_first to False 2022-11-04 00:35:18 +00:00
Gur
b2c48091db fixed api compatibility with python 3.8 2022-11-04 06:55:03 +08:00
Bruno Seoane
743fffa3d6 Remove unused endpoint 2022-11-03 00:52:01 -03:00
Bruno Seoane
7a2e36b583 Add config and lists endpoints 2022-11-03 00:51:22 -03:00
digburn
2ac25ea64f fix: Add required parameter to API extras route 2022-11-02 21:52:23 +00:00
evshiron
e21fcd72fc add back png info in image api 2022-11-02 22:37:45 +08:00
AUTOMATIC
4a8cf01f6f remove duplicate code from #3970 2022-11-02 12:12:32 +03:00
evshiron
51e0a83969 Merge branch 'master' into fix/progress-api 2022-11-02 12:31:33 +08:00
AUTOMATIC
198a1ffcfc fix API returning extra stuff in base64 encoded iamges for #3972 2022-11-01 19:14:10 +03:00
Roy Shilkrot
3f3d14afd5 nix unused thing 2022-10-31 11:51:21 -04:00
Roy Shilkrot
df6a7ebfe8 revert things to master 2022-10-31 11:50:33 -04:00
Roy Shilkrot
509fd1459b Merge remote-tracking branch 'upstream/master' into roy.add_simple_interrogate_api 2022-10-31 11:45:52 -04:00
evshiron
adaa699e38 prototype interrupt api 2022-10-31 10:31:06 +08:00
evshiron
1a4ff2de6a fix current image in progress api when parallel processing enabled 2022-10-30 17:02:47 +08:00
AUTOMATIC
149784202c rework #3722 to not introduce duplicate code 2022-10-30 09:10:22 +03:00
evshiron
9f4f894d74 allow skip current image in progress api 2022-10-30 06:03:32 +08:00
evshiron
9f104b53c4 preview current image when opts.show_progress_every_n_steps is enabled 2022-10-30 05:19:17 +08:00
evshiron
88f46a5bec update progress response model 2022-10-30 05:04:29 +08:00
evshiron
e9c6c2a51f add description for state field 2022-10-30 04:02:56 +08:00
evshiron
f62db4d5c7 fix progress response model 2022-10-30 03:56:44 +08:00
evshiron
7f5212fb5f Merge branch 'master' into feat/progress-api 2022-10-30 03:49:00 +08:00
evshiron
6b719c49b1 Merge branch 'master' into feat/progress-api 2022-10-30 03:45:29 +08:00
Bruno Seoane
83a1f44ae2 Fix space 2022-10-29 16:10:00 -03:00
Bruno Seoane
4609b83cd4 Add PNG Info endpoint 2022-10-29 16:09:19 -03:00
Roy Shilkrot
bdc9083798 Add a barebones interrogate API 2022-10-27 15:20:15 -04:00
evshiron
fddb4883f4 prototype progress api 2022-10-26 22:39:08 +08:00
Bruno Seoane
b2e0d8ba78 Remove folder endpoint 2022-10-26 09:54:26 -03:00
Bruno Seoane
8320963dcb Merge branch 'master' of https://github.com/AUTOMATIC1111/stable-diffusion-webui 2022-10-26 09:50:26 -03:00
Stephen
b46c64c6e5 clean 2022-10-26 09:46:17 +03:00
Stephen
db9ab1a46b [Bugfix][API] - Fix API response for colab users 2022-10-26 09:46:17 +03:00