fix(client): prevent feedback telemetry TypeError (#4795)

This commit is contained in:
Asish Kumar
2026-04-12 03:06:05 +05:30
committed by GitHub
parent 9d6b79a14e
commit c239d8a483
2 changed files with 61 additions and 2 deletions
+2 -2
View File
@@ -873,7 +873,7 @@ class MemoryClient:
response = self.client.post("/v1/feedback/", json=data)
response.raise_for_status()
capture_client_event("client.feedback", self, data, {"sync_type": "sync"})
capture_client_event("client.feedback", self, {**data, "sync_type": "sync"})
return response.json()
def _prepare_payload(self, messages: List[Dict[str, str]], kwargs: Dict[str, Any]) -> Dict[str, Any]:
@@ -1743,5 +1743,5 @@ class AsyncMemoryClient:
response = await self.async_client.post("/v1/feedback/", json=data)
response.raise_for_status()
capture_client_event("client.feedback", self, data, {"sync_type": "async"})
capture_client_event("client.feedback", self, {**data, "sync_type": "async"})
return response.json()