Skip to content

Commit 729a6af

Browse files
committed
fixing typo
1 parent de6cdcd commit 729a6af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/ai-studio/how-to/develop/connections-add-sdk.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The following example creates an Azure OpenAI Service connection.
3939
> To connect to Azure OpenAI and more AI services with one connection, you can use the [AI services connection](#azure-ai-services) instead.
4040
4141
```python
42-
from azure.ai.ml.entities import Connection, AzureOpenAIConnection, ApiKeyConfiguration
42+
from azure.ai.ml.entities import AzureOpenAIConnection, ApiKeyConfiguration
4343
from azure.ai.ml.entities import UsernamePasswordConfiguration
4444

4545
name = "XXXXXXXXX"
@@ -50,7 +50,7 @@ resource_id= "Azure-resource-id"
5050

5151
wps_connection = AzureOpenAIConnection(
5252
name=name,
53-
endpoint=target,
53+
azure_endpoint=target,
5454
credentials=ApiKeyConfiguration(key=api_key),
5555
resource_id = resource_id,
5656
is_shared=False

0 commit comments

Comments
 (0)