Skip to content

Commit 3f8b2e4

Browse files
authored
Merge pull request #269 from MyRobotLab/fix-for-llm-transfer
Modify LLM response handling in llm.aiml
2 parents 69faaf6 + 7c7702d commit 3f8b2e4

File tree

6 files changed

+34
-31
lines changed

6 files changed

+34
-31
lines changed

peers/ProgramAB/de-DE/aiml/llm.aiml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@
33
<!-- -->
44
<!-- gpt -->
55

6-
<category><pattern>SRAIXFAILED *</pattern>
6+
<category><pattern>SRAIXFAILED #</pattern>
77
<template><condition name="llm">
88
<li value="enabled"><img src="img/InMoov2/brain-resize.gif"/>
99
<think>
1010
<set name="topic"><star/></set>
11+
<set name="newpattern"><input index="2"/></set>
1112
</think>
1213
<oob>
1314
<mrl>
1415
<service>python</service>
1516
<method>exec</method>
16-
<param>i01_llm.onText("<star/>")</param>
17+
<param>i01_llm.getResponse("<input index="2"/>")</param>
1718
</mrl>
1819
</oob>
1920
</li>
@@ -30,13 +31,12 @@
3031
</random>
3132
</li>
3233
</condition>
34+
<think>
35+
<set name="newpattern"> </set>
36+
</think>
3337
</template>
3438
</category>
3539

36-
<category><pattern>LLM_RESPONSE #</pattern>
37-
<template><img src="../Llm.png"/></template>
38-
</category>
39-
4040
<category><pattern>LLM KOMMUNIKATION</pattern>
4141
<template>
4242
<condition name="llm">
@@ -63,3 +63,5 @@
6363
</topic>
6464
</aiml>
6565

66+
67+

peers/ProgramAB/en-US/aiml/sraix.aiml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,6 @@
233233
</think>
234234
</template>
235235
</category>
236-
<category><pattern>LLM_RESPONSE #</pattern>
237-
<template><img src="../Llm.png"/></template>
238-
</category>
239-
240236
<category><pattern>APPOINTMENT *</pattern>
241237
<template><srai>SCHEDULEDESCRIPTION <star/> SCHEDULEREQUEST APPOINTMENT <star/></srai></template>
242238
</category>
@@ -413,3 +409,4 @@
413409

414410

415411

412+

peers/ProgramAB/es-ES/aiml/sraix.aiml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@
2525
<li value="enabled"><img src="img/InMoov2/brain-resize.gif"/>
2626
<think>
2727
<set name="topic"><star/></set>
28+
<set name="newpattern"><input index="2"/></set>
2829
</think>
2930
<oob>
3031
<mrl>
3132
<service>python</service>
3233
<method>exec</method>
33-
<param>i01_llm.getResponse(u"<star/>")</param>
34+
<param>i01_llm.getResponse(u"<input index="2"/>")</param>
3435
</mrl>
3536
</oob>
3637
</li>
@@ -53,13 +54,12 @@
5354
</random><srai>LEARN SRAIXFAILED</srai>
5455
</li>
5556
</condition>
57+
<think>
58+
<set name="newpattern"> </set>
59+
</think>
5660
</template>
5761
</category>
5862

59-
<category><pattern>LLM_RESPONSE #</pattern>
60-
<template><img src="../Llm.png"/></template>
61-
</category>
62-
6363
<category><pattern>COMUNICACIÓN LLM</pattern>
6464
<template>
6565
<condition name="llm">
@@ -80,11 +80,12 @@
8080
<think><set name="topic">default</set>
8181
<set name="llmStop"></set>
8282
</think></li>
83-
<li><img src="../Llm.png"/><oob><mrl><service>python</service><method>exec</method><param>i01_llm.onText("<star/>")</param></mrl></oob></li>
83+
<li><img src="../Llm.png"/><oob><mrl><service>python</service><method>exec</method><param>i01_llm.getResponse("<star/>")</param></mrl></oob></li>
8484
</condition>
8585
</template>
8686
</category>
8787
</topic>
8888

8989
</aiml>
9090

91+

peers/ProgramAB/fr-FR/aiml/_inmoovKnowledge.aiml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
<!-- File: _inmoovKnowledge.aiml-->
44
<!-- -->
55
<category><pattern># <set>determinantinterogatif</set> JE NE SAIS PAS</pattern>
6-
<template><!--<think>
7-
<set name="determinantinterogatif">
8-
<star index="1"/>
9-
</set>
10-
</think>-->
6+
<template>
117
<sraix><get name="courant"/></sraix>
128
</template>
139
</category>
@@ -16,12 +12,15 @@
1612
<template>
1713
<condition name="llm">
1814
<li value="enabled"><img src="img/InMoov2/brain-resize.gif"/>
15+
<think>
16+
<set name="topic"><star/></set>
17+
</think>
1918
<oob>
2019
<mrl>
2120
<service>python</service>
2221
<method>exec</method>
2322
<param>i01_llm.getResponse("<condition name="askLlm">
24-
<li value="unknown"><get name="quoi" /></li><li><get name="askLlm" /> <get name="courant" /></li></condition>")</param>
23+
<li value="unknown"><get name="quoi" /></li><li><get name="askLlm" /> <get name="articles" /> <get name="courant" /></li></condition>")</param>
2524
</mrl>
2625
</oob>
2726
<think><set name="askLlm">
@@ -38,9 +37,6 @@
3837
</condition>
3938
</template>
4039
</category>
41-
<category><pattern>LLM_RESPONSE #</pattern>
42-
<template><img src="../Llm.png"/></template>
43-
</category>
4440

4541
<category><pattern>SYSTEM_WIKIDATA_CATEGORIE <set>articles</set> * <set>articles</set> *</pattern>
4642
<template><oob>

peers/ProgramAB/it-IT/aiml/sraix.aiml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,18 @@
33
<!-- File: sraix.aiml -->
44
<!-- -->
55

6-
<category><pattern>SRAIXFAILED *</pattern>
6+
<category><pattern>SRAIXFAILED #</pattern>
77
<template><condition name="llm">
88
<li value="enabled"><img src="../Llm.png"/>
99
<think>
1010
<set name="topic"><star/></set>
11+
<set name="newpattern"><input index="2"/></set>
1112
</think>
1213
<oob>
1314
<mrl>
1415
<service>python</service>
1516
<method>exec</method>
16-
<param>i01_llm.getResponse(u"<star/>")</param>
17+
<param>i01_llm.getResponse(u"<input index="2"/>")</param>
1718
</mrl>
1819
</oob>
1920
</li>
@@ -36,6 +37,10 @@
3637
</random><think><set name="topic">learnf</set></think><srai>LEARN SRAIXFAILED</srai>
3738
</li>
3839
</condition>
40+
<think>
41+
<set name="newpattern"> </set>
42+
</think>
3943
</template>
4044
</category>
4145
</aiml>
46+

peers/ProgramAB/nl-NL/aiml/sraix.aiml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88
<li value="enabled"><img src="img/InMoov2/brain-resize.gif"/>
99
<think>
1010
<set name="topic"><star/></set>
11+
<set name="newpattern"><input index="2"/></set>
1112
</think>
1213
<oob>
1314
<mrl>
1415
<service>python</service>
1516
<method>exec</method>
16-
<param>i01_llm.getResponse("<star/>")</param>
17+
<param>i01_llm.getResponse("<input index="2"/>")</param>
1718
</mrl>
1819
</oob>
1920
</li>
@@ -36,10 +37,11 @@
3637
</random><think><set name="topic">learnf</set></think><srai>LEARN SRAIXFAILED</srai>-->
3738
</li>
3839
</condition>
40+
<think>
41+
<set name="newpattern"> </set>
42+
</think>
3943
</template>
4044
</category>
41-
<category><pattern>LLM_RESPONSE #</pattern>
42-
<template><img src="../Llm.png"/></template>
43-
</category>
4445
</aiml>
4546

47+

0 commit comments

Comments
 (0)