mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
fix(huggingface_restapi.py): async implementation
This commit is contained in:
parent
1bd7d13653
commit
e28b9534e4
2 changed files with 31 additions and 34 deletions
|
@ -4,7 +4,9 @@
|
|||
import sys, os
|
||||
import pytest
|
||||
import traceback
|
||||
import asyncio
|
||||
import asyncio, logging
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.setLevel(logging.DEBUG)
|
||||
|
||||
sys.path.insert(
|
||||
0, os.path.abspath("../..")
|
||||
|
@ -99,5 +101,3 @@ def test_get_response_non_openai_streaming():
|
|||
pytest.fail(f"An exception occurred: {e}")
|
||||
return response
|
||||
asyncio.run(test_async_call())
|
||||
|
||||
test_get_response_non_openai_streaming()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue