Skip to content

Commit beb63e7

Browse files
authored
Duplicate instance of AzureOpenAI client
AOAI has been already instantiated earlier, and that's why this part can be removed as a duplicate effort.
1 parent 913c391 commit beb63e7

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)