Skip to content

Commit 5505aab

Browse files
committed
Remove unused planner params
1 parent b6cc47e commit 5505aab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

web/src/helpers/LLM/remote.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { PlanActionsParams } from '.'
44
import { getLLMResponse } from '../../app/api'
55
import { getApp } from '../app'
66
import { getState } from '../../state/store'
7-
import { unset } from 'lodash'
7+
import { set, unset } from 'lodash'
88
import { processAllMetadata } from '../metadataProcessor'
99
import { getParsedIframeInfo } from '../origin'
1010

@@ -31,6 +31,9 @@ export async function planActionsRemote({
3131
}
3232
if (!deepResearch) {
3333
unset(payload, 'tasks')
34+
} else {
35+
set(payload, 'messages.0.content', "")
36+
set(payload, 'actions', [])
3437
}
3538
const dbId = getApp().useStore().getState().toolContext?.dbId || undefined
3639
const getAllMetadataPromise = processAllMetadata(false, dbId)

0 commit comments

Comments
 (0)