mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
test_image_generation_openai
This commit is contained in:
parent
2c52791b83
commit
5cca4c8b4f
1 changed files with 2 additions and 4 deletions
|
|
@ -930,10 +930,8 @@ def test_image_generation_openai():
|
|||
|
||||
response = litellm.image_generation(
|
||||
prompt="A cute baby sea otter",
|
||||
model="azure/dall-e-3-test",
|
||||
api_version="2023-12-01-preview",
|
||||
api_base=os.getenv("AZURE_SWEDEN_API_BASE"),
|
||||
api_key=os.getenv("AZURE_SWEDEN_API_KEY"),
|
||||
model="openai/dall-e-3",
|
||||
api_key=os.getenv("OPENAI_API_KEY"),
|
||||
)
|
||||
|
||||
print(f"response: {response}")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue