Skip to content

Commit 34b6fcb

Browse files
author
Derek Legenzoff
authored
Merge pull request #33 from Azure-Samples/delegenz
removing chatgpt samples for the completions API
2 parents 6156185 + 58fa9b8 commit 34b6fcb

File tree

4 files changed

+3
-714
lines changed

4 files changed

+3
-714
lines changed

Basic_Samples/Completions/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# Introduction
33

4-
This repository contains samples demonstrating how to use GPT/ ChatGPT for Completions via Python SDK or REST API.
4+
This repository contains samples demonstrating how to use GPT for Completions via Python SDK or REST API.
55

66
## Installation
77
Install all Python modules and packages listed in the requirements.txt file using the below command.
@@ -11,11 +11,10 @@ pip install -r requirements.txt
1111
```
1212

1313
### Microsoft Azure Endpoints
14-
In order to use the Open AI library or REST API with Microsoft Azure endpoints, you need to set CHATGPT_MODEL/COMPLETIONS_MODEL, OPENAI_API_BASE & OPENAI_API_VERSION in _config.json_ file.
14+
In order to use the Open AI library or REST API with Microsoft Azure endpoints, you need to set COMPLETIONS_MODEL, OPENAI_API_BASE & OPENAI_API_VERSION in _config.json_ file.
1515

1616
```js
1717
{
18-
"CHATGPT_MODEL":"<ChatGPT Model Name>",
1918
"COMPLETIONS_MODEL":"<Completions Model Name>",
2019
"OPENAI_API_BASE":"https://<Your Azure Resource Name>.openai.azure.com",
2120
"OPENAI_API_VERSION":"<OpenAI API Version>"
@@ -35,10 +34,9 @@ One can get the OPENAI_API_KEY value from the Azure Portal. Go to https://portal
3534
export OPENAI_API_KEY="REPLACE_WITH_YOUR_KEY_VALUE_HERE"
3635

3736
- For _Completions_ scenario, one can start with using your model name ("COMPLETIONS_MODEL" in _config.json_ file) as "text_davinci_003". <br>
38-
And for ChatGPT Completions, one can start with using your model name as "gpt-35-turbo" ("CHATGPT_MODEL" in _config.json_ file).
3937

4038
- To find your "OPENAI_API_BASE" go to https://portal.azure.com, find your resource and then under "Resource Management" -> "Keys and Endpoints" look for the "Endpoint" value.
41-
- Current OpenAI api version is "2022-12-01". Check out versions [here](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/reference).
39+
- Current OpenAI api version is "2023-05-15". Check out versions [here](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/reference).
4240

4341
Learn more about Azure OpenAI Service REST API [here](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/reference).
4442

Basic_Samples/Completions/chatGPT_completions_example_sdk.ipynb

Lines changed: 0 additions & 230 deletions
This file was deleted.

0 commit comments

Comments
 (0)