feat(api): make client state key query not body

This commit is contained in:
psychedelicious
2025-07-22 15:45:12 +10:00
parent e872c253b1
commit 682d271f6f

View File

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