Skip to content

Commit 10c872d

Browse files
committed
Work on 04_Explore_OpenAI_models lab
1 parent b8938cc commit 10c872d

File tree

1 file changed

+2
-27
lines changed

1 file changed

+2
-27
lines changed

04_Explore_OpenAI_models/README.md

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -60,33 +60,8 @@ The [fine-tuning guide](https://learn.microsoft.com/azure/ai-services/openai/how
6060

6161
## Explore and use models from code
6262

63-
64-
### OpenAI Client Library
65-
66-
When integrating Azure OpenAI service in a solution written in Python, the OpenAI Python client library is used. This library is maintained by OpenAI, and is compatible with the Azure OpenAI service.
67-
68-
Install the latest `openai` client library:
69-
```bash
70-
pip install openai
71-
```
72-
73-
When using the OpenAI client library, the `key` and `endpoint` for the Azure OpenAI service will be needed. This will enable the application to make API calls against the Azure OpenAI service.
74-
75-
The Azure OpenAI service `key` and `endpoint` can be located on **Azure OpenAI** blade in the Azure Portal on the **Keys and Endpoint** pane.
63+
The `key` and `endpoint` necessary to make API calls to Azure OpenAI can be located on **Azure OpenAI** blade in the Azure Portal on the **Keys and Endpoint** pane.
7664

7765
![Azure OpenAI Keys and Endpoint pane in the Azure Portal](media/2024-01-09-13-53-51.png)
7866

79-
It is helpful to set these as environment variables, then reference those environment variables from code. Here's an example of this using the recommended environment variable names:
80-
81-
```bash
82-
export AZURE_OPENAI_KEY="REPLACE_WITH_YOUR_KEY_VALUE_HERE"
83-
export AZURE_OPENAI_ENDPOINT="REPLACE_WITH_YOUR_ENDPOINT_HERE"
84-
```
85-
86-
### Completions
87-
88-
### Chat completions
89-
90-
- Completions - https://learn.microsoft.com/en-us/azure/ai-services/openai/quickstart?tabs=command-line%2Cpython&pivots=programming-language-python
91-
92-
- Chat completions - https://learn.microsoft.com/en-us/azure/ai-services/openai/chatgpt-quickstart?tabs=command-line%2Cpython&pivots=programming-language-python
67+
Please visit the lab repository to complete this lab.

0 commit comments

Comments
 (0)