Skip to content

Commit b177051

Browse files
fix: Escape newline character in Azure OpenAI Stop Sequence parameter
1 parent 5e34dbc commit b177051

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

infra/main.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ param azureOpenAITopP string = '1'
187187
param azureOpenAIMaxTokens string = '1000'
188188

189189
@description('Optional. Azure OpenAI Stop Sequence.')
190-
param azureOpenAIStopSequence string = '\n'
190+
param azureOpenAIStopSequence string = '\\n'
191191

192192
@description('Optional. Azure OpenAI System Message.')
193193
param azureOpenAISystemMessage string = 'You are an AI assistant that helps people find information.'

infra/main.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"_generator": {
77
"name": "bicep",
88
"version": "0.37.4.10188",
9-
"templateHash": "6587834896134198095"
9+
"templateHash": "5895320887545019006"
1010
}
1111
},
1212
"parameters": {
@@ -329,7 +329,7 @@
329329
},
330330
"azureOpenAIStopSequence": {
331331
"type": "string",
332-
"defaultValue": "\n",
332+
"defaultValue": "\\n",
333333
"metadata": {
334334
"description": "Optional. Azure OpenAI Stop Sequence."
335335
}

0 commit comments

Comments
 (0)