Skip to content

Commit

Permalink
fix: issue in example.py, line-ending bad in a json
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Jul 11, 2023
1 parent c10d5b7 commit 5ccd592
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion example.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ def main() -> None:
min_ratings=0,
)

response: pydantic.BaseModel = ratingsAPIClient.get(userValidateRequest)
response: pydantic.BaseModel = ratingsAPIClient.submit_request(
userValidateRequest,
userValidateRequest.get_success_response_type(),
)
if not isinstance(response, UserValidateResponse):
raise Exception("The response type doesn't match expected one!")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3743,4 +3743,4 @@
"team": {},
"bridge_agent": "AI Horde Worker:22:https://github.com/db0/AI-Horde-Worker"
}
]
]

0 comments on commit 5ccd592

Please sign in to comment.