feat(azure.py): add support for azure image generations endpoint

This commit is contained in:
Krrish Dholakia 2023-12-20 16:37:21 +05:30
parent f0df28362a
commit b3962e483f
6 changed files with 90 additions and 11 deletions

View file

@ -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.")