feat(api): add /sdapi/v1/embeddings

This commit is contained in:
Philpax
2023-01-02 10:17:33 +11:00
parent 311354c0bb
commit b5819d9bf1
2 changed files with 11 additions and 0 deletions

View File

@@ -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)")