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/switching-endpoints.md
+57-55Lines changed: 57 additions & 55 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,21 +2,20 @@
2
2
title: How to switch between OpenAI and Azure OpenAI Service endpoints with Python
3
3
titleSuffix: Azure OpenAI Service
4
4
description: Learn about the changes you need to make to your code to swap back and forth between OpenAI and Azure OpenAI endpoints.
5
-
author: mrbullwinkle #dereklegenzoff
6
-
ms.author: mbullwin #delegenz
5
+
author: mrbullwinkle
6
+
ms.author: mbullwin
7
7
ms.service: azure-ai-openai
8
8
ms.custom: devx-track-python
9
9
ms.topic: how-to
10
-
ms.date: 07/20/2023
10
+
ms.date: 11/22/2023
11
11
manager: nitinme
12
12
---
13
13
14
14
# How to switch between OpenAI and Azure OpenAI endpoints with Python
15
15
16
16
While OpenAI and Azure OpenAI Service rely on a [common Python client library](https://github.com/openai/openai-python), there are small changes you need to make to your code in order to swap back and forth between endpoints. This article walks you through the common changes and differences you'll experience when working across OpenAI and Azure OpenAI.
17
17
18
-
> [!NOTE]
19
-
> This library is maintained by OpenAI and is currently in preview. Refer to the [release history](https://github.com/openai/openai-python/releases) or the [version.py commit history](https://github.com/openai/openai-python/commits/main/openai/version.py) to track the latest updates to the library.
18
+
This article only shows examples with the new OpenAI Python 1.x API library. For information on migrating from `0.28.1` to `1.x` refer to our [migration guide](./migration.md).
20
19
21
20
## Authentication
22
21
@@ -32,10 +31,12 @@ We recommend using environment variables. If you haven't done this before our [P
0 commit comments