You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-services/openai/how-to/migration.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,13 @@ ms.author: mbullwin
7
7
ms.service: azure-ai-openai
8
8
ms.custom:
9
9
ms.topic: how-to
10
-
ms.date: 11/09/2023
10
+
ms.date: 11/10/2023
11
11
manager: nitinme
12
12
---
13
13
14
14
# Migrating to the OpenAI Python API library 1.x
15
15
16
-
OpenAI has just released a new version of the [OpenAI Python API library](https://github.com/openai/openai-python/). This guide is supplemental to [OpenAI's migration guide](https://github.com/openai/openai-python/discussions/631) and will help bring you up to speed on the changes specific to Azure OpenAI.
16
+
OpenAI has just released a new version of the [OpenAI Python API library](https://github.com/openai/openai-python/). This guide is supplemental to [OpenAI's migration guide](https://github.com/openai/openai-python/discussions/742) and will help bring you up to speed on the changes specific to Azure OpenAI.
"content": "How is Azure machine learning different than Azure OpenAI?",
130
+
},
131
+
],
132
+
extra_body={
133
+
"dataSources": [
134
+
{
135
+
"type": "AzureCognitiveSearch",
136
+
"parameters": {
137
+
"endpoint": os.environ["SearchEndpoint"],
138
+
"key": os.environ["SearchKey"],
139
+
"indexName": os.environ["SearchIndex"]
140
+
}
140
141
}
141
-
}
142
-
]
143
-
}
144
-
)
145
-
146
-
print(completion.model_dump_json(indent=2))
147
-
```
148
-
149
-
---
142
+
]
143
+
}
144
+
)
145
+
146
+
print(completion.model_dump_json(indent=2))
147
+
```
148
+
149
+
---
150
150
151
151
> [!IMPORTANT]
152
152
> For production, use a secure way of storing and accessing your credentials like [Azure Key Vault](../../../key-vault/general/overview.md). For more information about credential security, see the Azure AI services [security](../../security-features.md) article.
0 commit comments