diff --git a/parea/client.py b/parea/client.py index f427789d..4f26263e 100644 --- a/parea/client.py +++ b/parea/client.py @@ -50,7 +50,14 @@ async def aget_prompt(self, data: UseDeployedPrompt) -> UseDeployedPromptRespons ) return UseDeployedPromptResponse(**r.json()) - async def record_feedback(self, data: FeedbackRequest) -> None: + def record_feedback(self, data: FeedbackRequest) -> None: + self._client.request( + "POST", + RECORD_FEEDBACK_ENDPOINT, + data=asdict(data), + ) + + async def arecord_feedback(self, data: FeedbackRequest) -> None: await self._client.request_async( "POST", RECORD_FEEDBACK_ENDPOINT, diff --git a/pyproject.toml b/pyproject.toml index 4d639a3d..d71dbbf9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "parea-ai" packages = [{ include = "parea" }] -version = "0.1.3" +version = "0.1.4" description = "Parea python sdk" readme = "README.md" authors = ["joel-parea-ai "]