Skip to content

Commit 4d10e89

Browse files
committed
update
1 parent b099970 commit 4d10e89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/ai-services/openai/how-to/structured-outputs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Currently only `gpt-4o` version: `2024-08-06` supports structured outputs.
2222

2323
## API support
2424

25-
Support for JSON mode was first added in API version [`2024-08-01-preview`](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2024-08-01-preview/inference.json).
25+
Support for structured outputs was first added in API version [`2024-08-01-preview`](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2024-08-01-preview/inference.json).
2626

2727
## Getting started
2828

@@ -319,7 +319,7 @@ from enum import Enum
319319
from typing import Union
320320
from pydantic import BaseModel
321321
import openai
322-
from openai import OpenAI
322+
from openai import AzureOpenAI
323323

324324
client = AzureOpenAI(
325325
azure_endpoint = os.getenv("AZURE_OPENAI_ENDPOINT"),

0 commit comments

Comments
 (0)