forked from phoenix/litellm-mirror
fix merge updates
This commit is contained in:
parent
7973665219
commit
ae23c02b2f
2 changed files with 3 additions and 7 deletions
|
@ -13,15 +13,12 @@ from typing import Optional
|
||||||
|
|
||||||
import litellm
|
import litellm
|
||||||
from litellm._logging import verbose_proxy_logger
|
from litellm._logging import verbose_proxy_logger
|
||||||
from litellm.proxy.utils import (
|
from litellm.litellm_core_utils.core_helpers import _get_parent_otel_span_from_kwargs
|
||||||
_get_parent_otel_span_from_kwargs,
|
from litellm.proxy.utils import log_db_metrics
|
||||||
get_litellm_metadata_from_kwargs,
|
|
||||||
log_to_opentelemetry,
|
|
||||||
)
|
|
||||||
from litellm.types.utils import StandardLoggingPayload
|
from litellm.types.utils import StandardLoggingPayload
|
||||||
|
|
||||||
|
|
||||||
@log_to_opentelemetry
|
@log_db_metrics
|
||||||
async def _PROXY_track_cost_callback(
|
async def _PROXY_track_cost_callback(
|
||||||
kwargs, # kwargs to completion
|
kwargs, # kwargs to completion
|
||||||
completion_response: litellm.ModelResponse, # response from completion
|
completion_response: litellm.ModelResponse, # response from completion
|
||||||
|
|
|
@ -147,7 +147,6 @@ async def test_check_num_callbacks():
|
||||||
|
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
@pytest.mark.order2
|
@pytest.mark.order2
|
||||||
@pytest.mark.skip(reason="skipping this test for now")
|
|
||||||
async def test_check_num_callbacks_on_lowest_latency():
|
async def test_check_num_callbacks_on_lowest_latency():
|
||||||
"""
|
"""
|
||||||
Test 1: num callbacks should NOT increase over time
|
Test 1: num callbacks should NOT increase over time
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue