From fd6e3d965bafb86bd341389266408242072c1ef6 Mon Sep 17 00:00:00 2001 From: Laurel Orr <57237365+lorr1@users.noreply.github.com> Date: Wed, 17 May 2023 16:29:31 -0700 Subject: [PATCH] Laurel/chatgpt hotfix (#96) * fix: chatgpt hotfix * chore: fix retry test --- CHANGELOG.rst | 10 ++++++++-- tests/test_manifest.py | 6 +++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index b705f67..41a439b 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -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 ^^^^^ diff --git a/tests/test_manifest.py b/tests/test_manifest.py index a6a3555..e667a54 100644 --- a/tests/test_manifest.py +++ b/tests/test_manifest.py @@ -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(), ), ]