Skip to content

Commit

Permalink
Laurel/chatgpt hotfix (#96)
Browse files Browse the repository at this point in the history
* fix: chatgpt hotfix

* chore: fix retry test
  • Loading branch information
lorr1 authored May 17, 2023
1 parent 93ff2cb commit fd6e3d9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
0.1.6 - Unreleased
0.1.8 - Unreleased
---------------------

0.1.7 - 2023-05-16
0.1.7 - 2023-05-17
---------------------
Fixed
^^^^^
* `_run_chat` fixed bug where not passing in kwargs

0.1.6 - 2023-05-16
---------------------
Fixed
^^^^^
Expand Down
6 changes: 3 additions & 3 deletions tests/test_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1161,12 +1161,12 @@ def test_retry_handling() -> None:
# Assert that OpenAI client was called twice
assert mock_create.call_count == 2

# Now make sure it errors when not a 429
# Now make sure it errors when not a 429 or 500
mock_create = MagicMock(
side_effect=[
# raise a 500 error
# raise a 505 error
HTTPError(
response=Mock(status_code=500, json=Mock(return_value={})),
response=Mock(status_code=505, json=Mock(return_value={})),
request=Mock(),
),
]
Expand Down

0 comments on commit fd6e3d9

Please sign in to comment.