aboutsummaryrefslogtreecommitdiffstats
path: root/modules/api/models.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-01-11 16:06:08 +0000
committerGitHub <noreply@github.com>2023-01-11 16:06:08 +0000
commit590ff5ce5b2e4474f998421c8de99baf74c45b5b (patch)
tree60f9e94bd709aed5a2af0ae64377beacc50c156f /modules/api/models.py
parent6d7f3d107263ed4e767bd2a50cce82f125d4ddbf (diff)
parent39ea251945d70efcf9b59d44eb0e71269d754aa4 (diff)
downloadstable-diffusion-webui-gfx803-590ff5ce5b2e4474f998421c8de99baf74c45b5b.tar.gz
stable-diffusion-webui-gfx803-590ff5ce5b2e4474f998421c8de99baf74c45b5b.tar.bz2
stable-diffusion-webui-gfx803-590ff5ce5b2e4474f998421c8de99baf74c45b5b.zip
Merge pull request #6647 from vladmandic/update-progress-api
add textinfo to progress api response
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 034b4aa0..c78095ca 100644
--- a/modules/api/models.py
+++ b/modules/api/models.py
@@ -168,6 +168,7 @@ class ProgressResponse(BaseModel):
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.")
+ textinfo: str = Field(default=None, title="Info text", description="Info text used by WebUI.")
class InterrogateRequest(BaseModel):
image: str = Field(default="", title="Image", description="Image to work on, must be a Base64 string containing the image's data.")