fix(cost_calculator.py): support openai+azure tts calls

This commit is contained in:
Krrish Dholakia 2024-07-05 20:58:08 -07:00
parent d528b66db0
commit 407639cc7d
6 changed files with 191 additions and 5 deletions

View file

@ -4705,7 +4705,9 @@ def get_model_info(model: str, custom_llm_provider: Optional[str] = None) -> Mod
)
except Exception:
raise Exception(
"This model isn't mapped yet. Add it here - https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json"
"This model isn't mapped yet. model={}, custom_llm_provider={}. Add it here - https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json".format(
model, custom_llm_provider
)
)