Skip to content

Commit 7997e72

Browse files
Merge pull request #266442 from mrbullwinkle/mrb_02_15_2024_freshness
[Azure OpenAI] freshness
2 parents 8b7a441 + 7a3574a commit 7997e72

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

articles/ai-services/openai/how-to/work-with-code.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
22
title: 'How to use the Codex models to work with code'
33
titleSuffix: Azure OpenAI Service
4-
description: Learn how to use the Codex models on Azure OpenAI to handle a variety of coding tasks
4+
description: Learn how to use the Codex models on Azure OpenAI to handle a variety of coding tasks.
55
#services: cognitive-services
66
manager: nitinme
77
ms.service: azure-ai-openai
88
ms.topic: how-to
9-
ms.date: 06/24/2022
10-
author: ChrisHMSFT
11-
ms.author: chrhoder
9+
ms.date: 02/15/2024
10+
author: mrbullwinkle
11+
ms.author: mbullwin
1212
---
1313

1414
# Codex models and Azure OpenAI Service
1515

16+
> [!NOTE]
17+
> This article was authored and tested against the [legacy code generation models](/azure/ai-services/openai/concepts/legacy-models). These models use the completions API, and its prompt/completion style of interaction. If you wish to test the techniques described in this article verbatim we recommend using the `gpt-35-turbo-instruct` model which allows access to the completions API. However, for code generation the chat completions API and the latest GPT-4 models will generally yield the best results, but the prompts would need to be converted to the conversational style specific to interacting with those models.
18+
1619
The Codex model series is a descendant of our GPT-3 series that's been trained on both natural language and billions of lines of code. It's most capable in Python and proficient in over a dozen languages including C#, JavaScript, Go, Perl, PHP, Ruby, Swift, TypeScript, SQL, and even Shell.
1720

1821
You can use Codex for a variety of tasks including:
@@ -113,7 +116,7 @@ Codex understands dozens of different programming languages. Many share similar
113116

114117
### Prompt Codex with what you want it to do
115118

116-
If you want Codex to create a webpage, placing the first line of code in an HTML document (`<!DOCTYPE html>`) after your comment tells Codex what it should do next. The same method works for creating a function from a comment (following the comment with a new line starting with func or def).
119+
If you want Codex to create a webpage, placing the initial line of code in an HTML document (`<!DOCTYPE html>`) after your comment tells Codex what it should do next. The same method works for creating a function from a comment (following the comment with a new line starting with func or def).
117120

118121
```html
119122
<!-- Create a web page with the title 'Kat Katman attorney at paw' -->
@@ -178,7 +181,7 @@ animals = [ {"name": "Chomper", "species": "Hamster"}, {"name":
178181

179182
### Lower temperatures give more precise results
180183

181-
Setting the API temperature to 0, or close to zero (such as 0.1 or 0.2) tends to give better results in most cases. Unlike GPT-3 models, where a higher temperature can provide useful creative and random results, higher temperatures with Codex models may give you really random or erratic responses.
184+
Setting the API temperature to 0, or close to zero (such as 0.1 or 0.2) tends to give better results in most cases. Unlike GPT-3 models, where a higher temperature can provide useful creative and random results, higher temperatures with Codex models might produce random or erratic responses.
182185

183186
In cases where you need Codex to provide different potential results, start at zero and then increment upwards by 0.1 until you find suitable variation.
184187

articles/ai-services/openai/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: mrbullwinkle
77
ms.author: mbullwin
88
ms.service: azure-ai-openai
99
ms.topic: overview
10-
ms.date: 10/16/2023
10+
ms.date: 02/15/2024
1111
ms.custom: build-2023, build-2023-dataai
1212
recommendations: false
1313
---

0 commit comments

Comments
 (0)