Skip to content

Commit a795f54

Browse files
committed
change ai-prompt-template default action
1 parent 85bdc4e commit a795f54

File tree

1 file changed

+1
-1
lines changed
  • plugins/wasm-go/extensions/ai-prompt-template

1 file changed

+1
-1
lines changed

plugins/wasm-go/extensions/ai-prompt-template/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func parseConfig(json gjson.Result, config *AIPromptTemplateConfig, log wrapper.
3434

3535
func onHttpRequestHeaders(ctx wrapper.HttpContext, config AIPromptTemplateConfig, log wrapper.Log) types.Action {
3636
templateEnable, _ := proxywasm.GetHttpRequestHeader("template-enable")
37-
if templateEnable != "true" {
37+
if templateEnable == "false" {
3838
ctx.DontReadRequestBody()
3939
return types.ActionContinue
4040
}

0 commit comments

Comments
 (0)