Skip to content

Commit 72d244e

Browse files
feat(api): make client state key query not body
1 parent 1cb40f4 commit 72d244e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

invokeai/app/api/routers/app_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ async def get_invocation_cache_status() -> InvocationCacheStatus:
181181
response_model=JsonValue | None,
182182
)
183183
async def get_client_state_by_key(
184-
key: str = Query(..., description="Key to retrieve from client state persistence"),
184+
key: str = Query(..., description="Key to get"),
185185
) -> JsonValue | None:
186186
"""Gets the client state"""
187187
try:
@@ -197,7 +197,7 @@ async def get_client_state_by_key(
197197
response_model=None,
198198
)
199199
async def set_client_state(
200-
key: str = Body(..., description="Key to set"),
200+
key: str = Query(..., description="Key to set"),
201201
value: JsonValue = Body(..., description="Value of the key"),
202202
) -> None:
203203
"""Sets the client state"""

0 commit comments

Comments
 (0)