feat: add autoAcceptedPlan to options

This commit is contained in:
Li Xin
2025-04-24 17:24:58 +08:00
parent cd6afcdd98
commit 1755128209
4 changed files with 29 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ const SETTINGS_KEY = "deerflow.settings";
const DEFAULT_SETTINGS: SettingsState = {
general: {
autoAcceptedPlan: false,
maxPlanIterations: 1,
maxStepNum: 3,
},
@@ -44,6 +45,7 @@ const DEFAULT_SETTINGS: SettingsState = {
export type SettingsState = {
general: {
autoAcceptedPlan: boolean;
maxPlanIterations: number;
maxStepNum: number;
};

View File

@@ -107,6 +107,7 @@ export async function sendMessage(
content,
{
thread_id: THREAD_ID,
auto_accepted_plan: generalSettings.autoAcceptedPlan,
max_plan_iterations: generalSettings.maxPlanIterations,
max_step_num: generalSettings.maxStepNum,
interrupt_feedback: interruptFeedback,