Skip to content

Commit 8f5112b

Browse files
Merge pull request #278715 from Blackmist/typo
fixing typo
2 parents b6eb793 + 7fb70ae commit 8f5112b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 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
@@ -252,7 +252,7 @@ The following example creates an OpenAI (not Azure OpenAI) connection:
252252
from azure.ai.ml.entities import OpenAIConnection
253253

254254
name = "my_oai_apk"
255-
api_key = "XXXXXXXX
255+
api_key = "XXXXXXXX"
256256

257257
wps_connection = OpenAIConnection(
258258
name=name,

0 commit comments

Comments
 (0)