We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 919e3ba + 437d388 commit 8d23110Copy full SHA for 8d23110
articles/ai-services/openai/how-to/assistant.md
@@ -365,7 +365,7 @@ We had requested that the model generate an image of a sine wave. In order to do
365
366
```python
367
data = json.loads(messages.model_dump_json(indent=2)) # Load JSON data into a Python object
368
-image_file_id = data['data'][1]['content'][0]['image_file']['file_id']
+image_file_id = data['data'][0]['content'][0]['image_file']['file_id']
369
370
print(image_file_id) # Outputs: assistant-1YGVTvNzc2JXajI5JU9F0HMD
371
```
0 commit comments