Skip to content

Commit 682b7ad

Browse files
authored
Update README.md (#631)
Ensure variables in examples are valid
1 parent f10955c commit 682b7ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ func main() {
453453
config := openai.DefaultAzureConfig("your Azure OpenAI Key", "https://your Azure OpenAI Endpoint")
454454
// If you use a deployment name different from the model name, you can customize the AzureModelMapperFunc function
455455
// config.AzureModelMapperFunc = func(model string) string {
456-
// azureModelMapping = map[string]string{
456+
// azureModelMapping := map[string]string{
457457
// "gpt-3.5-turbo": "your gpt-3.5-turbo deployment name",
458458
// }
459459
// return azureModelMapping[model]
@@ -559,7 +559,7 @@ func main() {
559559

560560
//If you use a deployment name different from the model name, you can customize the AzureModelMapperFunc function
561561
//config.AzureModelMapperFunc = func(model string) string {
562-
// azureModelMapping = map[string]string{
562+
// azureModelMapping := map[string]string{
563563
// "gpt-3.5-turbo":"your gpt-3.5-turbo deployment name",
564564
// }
565565
// return azureModelMapping[model]

0 commit comments

Comments
 (0)