Laurel/chatgpt hotfix (#96)

* fix: chatgpt hotfix

* chore: fix retry test
pull/97/head v0.1.7
Laurel Orr 1 year ago committed by GitHub
parent 93ff2cb3c1
commit fd6e3d965b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
^^^^^

@ -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(),
),
]

Loading…
Cancel
Save