Commit daef6c4
Brendan Gray
v1.8.4: Fix stopReason passthrough, creative writing preamble, JSON template literal parsing
Bug 1: LLMEngine.generateStream() now passes through metadata.stopReason='maxTokens' from node-llama-cpp instead of hardcoding 'natural'. Enables seamless continuation to trigger.
Bug 2: Added general instruction to preambles telling model to respond with creative text directly instead of creating code files.
Bug 3: Improved fixBackticks() in toolParser.js to properly escape multi-line content and inner double-quotes when converting template literals to JSON strings.1 parent acd9aa2 commit daef6c4
3 files changed
Lines changed: 24 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| 77 | + | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
620 | 620 | | |
621 | 621 | | |
622 | 622 | | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
623 | 629 | | |
624 | 630 | | |
625 | 631 | | |
626 | 632 | | |
627 | 633 | | |
628 | 634 | | |
629 | | - | |
| 635 | + | |
630 | 636 | | |
631 | 637 | | |
632 | 638 | | |
| |||
917 | 923 | | |
918 | 924 | | |
919 | 925 | | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
920 | 929 | | |
921 | 930 | | |
922 | 931 | | |
923 | 932 | | |
924 | | - | |
| 933 | + | |
925 | 934 | | |
926 | 935 | | |
927 | 936 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
128 | 138 | | |
129 | 139 | | |
130 | 140 | | |
| |||
0 commit comments