mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
ci(gateway): run tests/test_gateway in the proxy-infra shard and justify the mock usage cast
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
cafddab938
commit
f38b677ddc
2 changed files with 4 additions and 1 deletions
1
.github/workflows/test-unit.yml
vendored
1
.github/workflows/test-unit.yml
vendored
|
|
@ -200,6 +200,7 @@ jobs:
|
|||
tests/test_litellm/proxy/types_utils
|
||||
tests/test_litellm/proxy/logging_endpoints
|
||||
tests/test_litellm/proxy/test_*.py
|
||||
tests/test_gateway
|
||||
workers: 4
|
||||
reruns: 2
|
||||
timeout-minutes: 20
|
||||
|
|
|
|||
|
|
@ -5565,7 +5565,9 @@ def completion(
|
|||
custom_llm_provider=custom_llm_provider,
|
||||
mock_timeout=mock_timeout,
|
||||
timeout=timeout,
|
||||
prompt_tokens=admission_input_tokens(cast(Mapping[str, object], kwargs)),
|
||||
prompt_tokens=admission_input_tokens(
|
||||
cast(Mapping[str, object], kwargs) # cast-ok: completion's **kwargs is untyped
|
||||
),
|
||||
)
|
||||
|
||||
## RESPONSES API BRIDGE LOGIC ## - check if model has 'mode: responses' in litellm.model_cost map
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue