Skip to content

Commit 23cfbfa

Browse files
committed
go chat quickstart
1 parent 3b5ee14 commit 23cfbfa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/ai-services/openai/includes/chat-go.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ client, err := azopenai.NewClientWithKeyCredential(azureOpenAIEndpoint, credenti
6262

6363
To run the sample:
6464

65-
1. Create a new file named *chat_completions-keyless.go*. Copy the following code into the *chat_completions-keyless.go* file.
65+
1. Create a new file named *chat_completions_keyless.go*. Copy the following code into the *chat_completions_keyless.go* file.
6666

6767
```go
6868
package main
@@ -178,7 +178,7 @@ To run the sample:
178178
1. Run the following command to create a new Go module:
179179

180180
```shell
181-
go mod init chat_completions-keyless.go
181+
go mod init chat_completions_keyless.go
182182
```
183183

184184
1. Run `go mod tidy` to install the required dependencies:
@@ -190,14 +190,14 @@ To run the sample:
190190
1. Run the following command to run the sample:
191191

192192
```shell
193-
go run chat_completions-keyless.go
193+
go run chat_completions_keyless.go
194194
```
195195

196196
#### [API key](#tab/api-key)
197197

198198
To run the sample:
199199

200-
1. Create a new file named *chat_completions-api-key.go*. Copy the following code into the *chat_completions-api-key.go* file.
200+
1. Create a new file named *chat_completions_api-key.go*. Copy the following code into the *chat_completions_api-key.go* file.
201201

202202
```go
203203
package main
@@ -310,7 +310,7 @@ To run the sample:
310310
1. Run the following command to create a new Go module:
311311

312312
```shell
313-
go mod init chat_completions-api-key.go
313+
go mod init chat_completions_api-key.go
314314
```
315315

316316
1. Run `go mod tidy` to install the required dependencies:
@@ -322,7 +322,7 @@ To run the sample:
322322
1. Run the following command to run the sample:
323323

324324
```shell
325-
go run chat_completions-api-key.go
325+
go run chat_completions_api-key.go
326326
```
327327

328328
---

0 commit comments

Comments
 (0)