From 978dee8c440f050b4fa7749b540f6a3b90cb436a Mon Sep 17 00:00:00 2001 From: Harry M <127103098+harry-cohere@users.noreply.github.com> Date: Thu, 5 Oct 2023 10:20:51 +0100 Subject: [PATCH] Remove unneeded max_tokens test case --- tests/async/test_async_generate.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/async/test_async_generate.py b/tests/async/test_async_generate.py index c909e0adc..dcebbb6f6 100644 --- a/tests/async/test_async_generate.py +++ b/tests/async/test_async_generate.py @@ -38,9 +38,6 @@ async def test_return_likelihoods_generation(async_client): @pytest.mark.asyncio async def test_raise_ex(async_client): - with pytest.raises(CohereAPIError): - await async_client.generate(prompt="too long", max_tokens=100000) - with pytest.raises(CohereAPIError): await async_client.batch_generate( ["not too long", "way too long even if we support 8 k tokens" * 2000],