mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
test(test_async_fn.py): more logging
This commit is contained in:
parent
9641cd0602
commit
9c9b205a7b
1 changed files with 3 additions and 0 deletions
|
@ -9,11 +9,13 @@ import asyncio
|
|||
sys.path.insert(
|
||||
0, os.path.abspath("../..")
|
||||
) # Adds the parent directory to the system path
|
||||
import litellm
|
||||
from litellm import acompletion, acreate
|
||||
|
||||
def test_async_response():
|
||||
import asyncio
|
||||
async def test_get_response():
|
||||
litellm.set_verbose = True
|
||||
user_message = "Hello, how are you?"
|
||||
messages = [{"content": user_message, "role": "user"}]
|
||||
try:
|
||||
|
@ -27,6 +29,7 @@ def test_async_response():
|
|||
def test_get_response_streaming():
|
||||
import asyncio
|
||||
async def test_async_call():
|
||||
litellm.set_verbose = True
|
||||
user_message = "Hello, how are you?"
|
||||
messages = [{"content": user_message, "role": "user"}]
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue