Skip to content

Commit 1695ce3

Browse files
committed
Use function scope in templates
1 parent 6a0a749 commit 1695ce3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Convo/Gpt/Pckg/gpt-example-chat.template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@
693693
"namespace": "convo-core",
694694
"properties": {
695695
"scope_type": "request",
696-
"parameters": "service",
696+
"parameters": "function",
697697
"properties": {
698698
"function_result": "${ strval( rand( data.min, data.max))}"
699699
},

src/Convo/Gpt/Pckg/gpt-site-admin.template.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@
567567
"namespace": "convo-core",
568568
"properties": {
569569
"scope_type": "request",
570-
"parameters": "service",
570+
"parameters": "function",
571571
"properties": {
572572
"function_data": "${[]}",
573573
"function_data[\"function_result\"]": "${wp_call_user_func_array( data.callback, data.args)}"
@@ -580,9 +580,9 @@
580580
"namespace": "convo-core",
581581
"properties": {
582582
"scope_type": "request",
583-
"parameters": "service",
583+
"parameters": "function",
584584
"properties": {
585-
"function_result": "${json_encode( function_data)}"
585+
"function_result": "${function_data}"
586586
},
587587
"_component_id": "ali8cfjc-mkwg-dch2-4ir5-4x3ntzmgj4bz"
588588
}

0 commit comments

Comments
 (0)