File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
articles/ai-studio/how-to/develop Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ The following example creates an Azure OpenAI Service connection.
39
39
> To connect to Azure OpenAI and more AI services with one connection, you can use the [ AI services connection] ( #azure-ai-services ) instead.
40
40
41
41
``` python
42
- from azure.ai.ml.entities import Connection, AzureOpenAIConnection, ApiKeyConfiguration
42
+ from azure.ai.ml.entities import AzureOpenAIConnection, ApiKeyConfiguration
43
43
from azure.ai.ml.entities import UsernamePasswordConfiguration
44
44
45
45
name = " XXXXXXXXX"
@@ -50,7 +50,7 @@ resource_id= "Azure-resource-id"
50
50
51
51
wps_connection = AzureOpenAIConnection(
52
52
name = name,
53
- endpoint = target,
53
+ azure_endpoint = target,
54
54
credentials = ApiKeyConfiguration(key = api_key),
55
55
resource_id = resource_id,
56
56
is_shared = False
@@ -252,7 +252,7 @@ The following example creates an OpenAI (not Azure OpenAI) connection:
252
252
from azure.ai.ml.entities import OpenAIConnection
253
253
254
254
name = " my_oai_apk"
255
- api_key = " XXXXXXXX
255
+ api_key = " XXXXXXXX"
256
256
257
257
wps_connection = OpenAIConnection(
258
258
name = name,
You can’t perform that action at this time.
0 commit comments