Skip to content

Commit

Permalink
add sync and async version
Browse files Browse the repository at this point in the history
  • Loading branch information
jalexanderII committed Aug 13, 2023
1 parent cb97066 commit 4ff91f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion parea/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"]
Expand Down

0 comments on commit 4ff91f9

Please sign in to comment.