mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
(fix): token_count calculation during inline data sent during multimodal inputs
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
6cb9353dfb
commit
69a6eb6256
1 changed files with 2 additions and 0 deletions
|
|
@ -44,10 +44,12 @@ from litellm.types.utils import CacheCreationTokenDetails, Usage
|
|||
@pytest.fixture(autouse=True)
|
||||
def setup_local_model_cost():
|
||||
"""Use the local model cost map for all tests."""
|
||||
original_model_cost = litellm.model_cost
|
||||
os.environ["LITELLM_LOCAL_MODEL_COST_MAP"] = "True"
|
||||
litellm.model_cost = litellm.get_model_cost_map(url="")
|
||||
yield
|
||||
os.environ.pop("LITELLM_LOCAL_MODEL_COST_MAP", None)
|
||||
litellm.model_cost = original_model_cost
|
||||
|
||||
def test_reasoning_tokens_no_price_set():
|
||||
model = "o1-mini"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue