aboutsummaryrefslogtreecommitdiff
path: root/modules/api/models.py
diff options
context:
space:
mode:
authorevshiron <evshiron@gmail.com>2022-10-30 05:19:17 +0800
committerevshiron <evshiron@gmail.com>2022-10-30 05:19:17 +0800
commit9f104b53c425e248595e5b6481336d2a339e015e (patch)
treeb9bb2a4a1b4df4562c72579874eed32d6d3dfb96 /modules/api/models.py
parent88f46a5bec610cf03641f18becbe3deda541e982 (diff)
preview current image when opts.show_progress_every_n_steps is enabled
Diffstat (limited to 'modules/api/models.py')
-rw-r--r--modules/api/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/api/models.py b/modules/api/models.py
index 0ab85ec5..c8bc719a 100644
--- a/modules/api/models.py
+++ b/modules/api/models.py
@@ -161,3 +161,4 @@ class ProgressResponse(BaseModel):
progress: float = Field(title="Progress", description="The progress with a range of 0 to 1")
eta_relative: float = Field(title="ETA in secs")
state: dict = Field(title="State", description="The current state snapshot")
+ current_image: str = Field(default=None, title="Current image", description="The current image in base64 format. opts.show_progress_every_n_steps is required for this to work.")