From 682d271f6f332b4742ae244112677ec8e44832ee Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Tue, 22 Jul 2025 15:45:12 +1000 Subject: [PATCH] feat(api): make client state key query not body --- invokeai/app/api/routers/app_info.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invokeai/app/api/routers/app_info.py b/invokeai/app/api/routers/app_info.py index d1c41c170c..fb949b74db 100644 --- a/invokeai/app/api/routers/app_info.py +++ b/invokeai/app/api/routers/app_info.py @@ -181,7 +181,7 @@ async def get_invocation_cache_status() -> InvocationCacheStatus: response_model=JsonValue | None, ) async def get_client_state_by_key( - key: str = Query(..., description="Key to retrieve from client state persistence"), + key: str = Query(..., description="Key to get"), ) -> JsonValue | None: """Gets the client state""" try: @@ -197,7 +197,7 @@ async def get_client_state_by_key( response_model=None, ) async def set_client_state( - key: str = Body(..., description="Key to set"), + key: str = Query(..., description="Key to set"), value: JsonValue = Body(..., description="Value of the key"), ) -> None: """Sets the client state"""