Merge pull request #2475 from BerriAI/litellm_azure_dall_e_3_cost_tracking

fix(azure.py): support cost tracking for azure/dall-e-3
This commit is contained in:
Krish Dholakia 2024-03-12 12:57:31 -07:00 committed by GitHub
commit 1ba102c618
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 44 additions and 1 deletions

View file

@ -3841,7 +3841,9 @@ def completion_cost(
* n
)
else:
raise Exception(f"Model={model} not found in completion cost model map")
raise Exception(
f"Model={image_gen_model_name} not found in completion cost model map"
)
# Calculate cost based on prompt_tokens, completion_tokens
if (
"togethercomputer" in model