mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-17 23:51:30 +00:00
test(test_alerting.py): remove duplicate test
This commit is contained in:
parent
3833c4083c
commit
6773341a08
1 changed files with 0 additions and 19 deletions
|
|
@ -65,22 +65,3 @@ async def test_get_api_base():
|
|||
message=slow_message + request_info,
|
||||
level="Low",
|
||||
)
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_request_taking_too_long():
|
||||
"""
|
||||
- attach request_taking_too_long as a success callback to litellm
|
||||
- unit test kwargs for azure call vs. vertex ai call -> ensure api base constructed correctly for both
|
||||
"""
|
||||
import time
|
||||
|
||||
_pl = ProxyLogging(user_api_key_cache=DualCache())
|
||||
litellm.success_callback = [_pl.response_taking_too_long_callback]
|
||||
|
||||
response = await litellm.acompletion(
|
||||
model="azure/chatgpt-v-2",
|
||||
messages=[{"role": "user", "content": "Hey, how's it going?"}],
|
||||
)
|
||||
|
||||
raise Exception("it worked!")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue