mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix(o_series_handler.py): handle async calls
This commit is contained in:
parent
3d292fc95e
commit
317ba18f4f
2 changed files with 4 additions and 0 deletions
|
@ -868,10 +868,13 @@ class BaseLLMChatTest(ABC):
|
|||
except Exception as e:
|
||||
pytest.fail(f"Error occurred: {e}")
|
||||
|
||||
@pytest.mark.flaky(retries=3, delay=1)
|
||||
@pytest.mark.asyncio
|
||||
async def test_completion_cost(self):
|
||||
from litellm import completion_cost
|
||||
|
||||
litellm._turn_on_debug()
|
||||
|
||||
os.environ["LITELLM_LOCAL_MODEL_COST_MAP"] = "True"
|
||||
litellm.model_cost = litellm.get_model_cost_map(url="")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue