From e00f46a6e9c14924be833a822113fe2d397f25f7 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Thu, 25 Jan 2024 14:42:10 -0800 Subject: [PATCH] (test) gpt-4-0125-preview --- litellm/tests/test_completion.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/litellm/tests/test_completion.py b/litellm/tests/test_completion.py index b2c69804ccc..e24248beed3 100644 --- a/litellm/tests/test_completion.py +++ b/litellm/tests/test_completion.py @@ -191,6 +191,21 @@ def test_completion_gpt4_turbo(): # test_completion_gpt4_turbo() +def test_completion_gpt4_turbo_0125(): + try: + response = completion( + model="gpt-4-0125-preview", + messages=messages, + max_tokens=10, + ) + print(response) + except openai.RateLimitError: + print("got a rate liimt error") + pass + except Exception as e: + pytest.fail(f"Error occurred: {e}") + + @pytest.mark.skip(reason="this test is flaky") def test_completion_gpt4_vision(): try: