forked from phoenix/litellm-mirror
fix ft api test
This commit is contained in:
parent
a70d112b98
commit
1d56c2f83e
1 changed files with 8 additions and 2 deletions
|
@ -134,7 +134,10 @@ async def test_create_fine_tune_jobs_async():
|
||||||
except openai.RateLimitError:
|
except openai.RateLimitError:
|
||||||
pass
|
pass
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pytest.fail(f"Error occurred: {e}")
|
if "Job has already completed" in str(e):
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
pytest.fail(f"Error occurred: {e}")
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
@ -188,7 +191,10 @@ async def test_azure_create_fine_tune_jobs_async():
|
||||||
except openai.RateLimitError:
|
except openai.RateLimitError:
|
||||||
pass
|
pass
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pytest.fail(f"Error occurred: {e}")
|
if "Job has already completed" in str(e):
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
pytest.fail(f"Error occurred: {e}")
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue