We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e97fd85 commit cd21570Copy full SHA for cd21570
invokeai/app/api/routers/style_presets.py
@@ -53,6 +53,20 @@ async def get_style_preset(
53
return StylePresetRecordWithImage(image=image, **style_preset.model_dump())
54
except StylePresetNotFoundError:
55
raise HTTPException(status_code=404, detail="Style preset not found")
56
+
57
+@style_presets_router.post(
58
+ "/i/{style_preset_id}",
59
+ operation_id="set_style_preset",
60
+ responses={
61
+ 200: {"model": StylePresetRecordWithImage},
62
+ },
63
+)
64
+async def select_style_preset(
65
+ style_preset_id: str = Path(description="The style preset to select"),
66
+) -> None:
67
+ """Selects a style preset, this will be used for saving recently used style presets"""
68
69
+ return
70
71
72
@style_presets_router.patch(
0 commit comments