mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
feat(azure.py): add support for azure image generations endpoint
This commit is contained in:
parent
f0df28362a
commit
b3962e483f
6 changed files with 90 additions and 11 deletions
|
@ -1613,6 +1613,7 @@ def client(original_function):
|
|||
try:
|
||||
model = args[0] if len(args) > 0 else kwargs["model"]
|
||||
except:
|
||||
model = None
|
||||
call_type = original_function.__name__
|
||||
if call_type != CallTypes.image_generation.value:
|
||||
raise ValueError("model param not passed in.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue