aboutsummaryrefslogtreecommitdiff
path: root/modules/api/models.py
diff options
context:
space:
mode:
authorPhilpax <me@philpax.me>2023-01-02 10:17:33 +1100
committerPhilpax <me@philpax.me>2023-01-02 10:18:11 +1100
commitb5819d9bf1794071139c640b5f1e72c84a0e051a (patch)
tree94d5333b81db9c2958648ab8912ea343fdf741f7 /modules/api/models.py
parent311354c0bb8930ea939d6aa6b3edd50c69301320 (diff)
feat(api): add /sdapi/v1/embeddings
Diffstat (limited to 'modules/api/models.py')
-rw-r--r--modules/api/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/api/models.py b/modules/api/models.py
index c446ce7a..a8472dc9 100644
--- a/modules/api/models.py
+++ b/modules/api/models.py
@@ -249,3 +249,6 @@ class ArtistItem(BaseModel):
score: float = Field(title="Score")
category: str = Field(title="Category")
+class EmbeddingsResponse(BaseModel):
+ loaded: List[str] = Field(title="Loaded", description="Embeddings loaded for the current model")
+ skipped: List[str] = Field(title="Skipped", description="Embeddings skipped for the current model (likely due to architecture incompatibility)") \ No newline at end of file