Skip to content

Commit 4719c20

Browse files
committed
fix variables
1 parent e51631e commit 4719c20

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

articles/ai-services/openai/includes/dall-e-dotnet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ using Azure.AI.OpenAI;
7979

8080
namespace Azure.AI.OpenAI.Tests.Samples
8181
{
82-
public partial class StreamingChat
82+
public partial class GenerateImages
8383
{
8484
// add an async Main method:
8585
public static async Task Main(string[] args)

articles/ai-services/openai/includes/dall-e-go.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func main() {
7474
azureOpenAIKey := os.Getenv("AZURE_OPENAI_KEY")
7575

7676
// Ex: "https://<your-azure-openai-host>.openai.azure.com"
77-
azureOpenAIEndpoint := os.Getenv("AZURE_OPENAI_KEY")
77+
azureOpenAIEndpoint := os.Getenv("AZURE_OPENAI_ENDPOINT")
7878

7979
if azureOpenAIKey == "" || azureOpenAIEndpoint == "" {
8080
fmt.Fprintf(os.Stderr, "Skipping example, environment variables missing\n")

articles/ai-services/openai/includes/dall-e-javascript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ Create a new file named _ImageGeneration.js_ and open it in your preferred code
6161
const { OpenAIClient, AzureKeyCredential } = require("@azure/openai");
6262

6363
// You will need to set these environment variables or edit the following values
64-
const endpoint = "tbd";
65-
const azureApiKey = "tbd";
64+
const endpoint = process.env["AZURE_OPENAI_ENDPOINT"] ;
65+
const azureApiKey = process.env["AZURE_OPENAI_KEY"] ;
6666

6767
// The prompt to generate images from
6868
const prompt = "a monkey eating a banana";

0 commit comments

Comments
 (0)