Skip to content

Commit 85c258c

Browse files
authored
Merge pull request #119675 from LazaUK/patch-49
Duplicate instance of AzureOpenAI client
2 parents 816d937 + beb63e7 commit 85c258c

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

articles/ai-services/openai/how-to/assistant.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -373,14 +373,6 @@ print(image_file_id) # Outputs: assistant-1YGVTvNzc2JXajI5JU9F0HMD
373373
### Download image
374374

375375
```python
376-
from openai import AzureOpenAI
377-
378-
client = AzureOpenAI(
379-
api_key=os.getenv("AZURE_OPENAI_KEY"),
380-
api_version="2024-02-15-preview",
381-
azure_endpoint = os.getenv("AZURE_OPENAI_ENDPOINT")
382-
)
383-
384376
content = client.files.content(image_file_id)
385377

386378
image= content.write_to_file("sinewave.png")

0 commit comments

Comments
 (0)