mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-19 00:01:29 +00:00
fixing mistral model deprecation, cloud zero transform bug
This commit is contained in:
parent
15352c4bc3
commit
295d1d443b
2 changed files with 2 additions and 2 deletions
|
|
@ -141,7 +141,7 @@ class CBFTransformer:
|
|||
# Required CBF fields
|
||||
'time/usage_start': usage_date.isoformat() if usage_date else None, # Required: ISO-formatted UTC datetime
|
||||
'cost/cost': float(row.get('spend', 0.0)), # Required: billed cost
|
||||
'resource/id': model, # Send model name
|
||||
'resource/id': resource_id, # CZRN (CloudZero Resource Name)
|
||||
|
||||
# Usage metrics for token consumption
|
||||
'usage/amount': total_tokens, # Numeric value of tokens consumed
|
||||
|
|
|
|||
|
|
@ -2189,7 +2189,7 @@ def test_completion_openrouter1():
|
|||
try:
|
||||
litellm.set_verbose = True
|
||||
response = completion(
|
||||
model="openrouter/mistralai/mistral-tiny",
|
||||
model="openrouter/mistralai/ministral-8b",
|
||||
messages=messages,
|
||||
max_tokens=5,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue