Skip to content

Commit f822765

Browse files
committed
refactor: Add noMultiGen flag to requestChatDataMain functions
1 parent 66bbee9 commit f822765

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

src/ts/process/memory/hypav2.ts

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ async function summary(stringlizedChat:string):Promise<{
3535
formated: promptbody,
3636
bias: {},
3737
useStreaming: false,
38+
noMultiGen: true
3839
}, 'model')
3940
if(da.type === 'fail' || da.type === 'streaming' || da.type === 'multiline'){
4041
return {

src/ts/process/memory/supaMemory.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,9 @@ export async function supaMemory(
264264
]
265265
const da = await requestChatData({
266266
formated: promptbody,
267-
bias: {}
267+
bias: {},
268+
useStreaming: false,
269+
noMultiGen: true
268270
}, 'submodel')
269271
if(da.type === 'fail' || da.type === 'streaming' || da.type === 'multiline'){
270272
return {

src/ts/process/stableDiff.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ export async function stableDiff(currentChar:character,prompt:string){
3434
currentChar: currentChar,
3535
temperature: 0.2,
3636
maxTokens: 300,
37-
bias: {}
37+
bias: {},
38+
useStreaming: false,
39+
noMultiGen: true
3840
}, 'submodel')
3941

4042

src/ts/translator/translator.ts

+2
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,8 @@ async function translateLLM(text:string, arg:{to:string}){
463463
],
464464
bias: {},
465465
useStreaming: false,
466+
noMultiGen: true,
467+
maxTokens: 1000,
466468
}, 'submodel')
467469

468470
if(rq.type === 'fail' || rq.type === 'streaming' || rq.type === 'multiline'){

0 commit comments

Comments
 (0)