mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix img gen cost
This commit is contained in:
parent
b71021f1bf
commit
c8cedbed20
1 changed files with 2 additions and 0 deletions
|
@ -4434,6 +4434,8 @@ def image_generation( # noqa: PLR0915
|
|||
},
|
||||
custom_llm_provider=custom_llm_provider,
|
||||
)
|
||||
if "custom_llm_provider" not in logging.model_call_details:
|
||||
logging.model_call_details["custom_llm_provider"] = custom_llm_provider
|
||||
if mock_response is not None:
|
||||
return mock_image_generation(model=model, mock_response=mock_response)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue