mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-18 10:01:33 +00:00
fix: restore a draft's tool approval mode without saving it over the chat being loaded
This commit is contained in:
parent
abd60d33fe
commit
68d65b8bf1
1 changed files with 4 additions and 1 deletions
|
|
@ -770,7 +770,10 @@
|
|||
imageGenerationEnabled = input.imageGenerationEnabled ?? false;
|
||||
codeInterpreterEnabled = input.codeInterpreterEnabled ?? false;
|
||||
if (input.toolApprovalMode) {
|
||||
await handleToolApprovalModeChange(input.toolApprovalMode);
|
||||
params = {
|
||||
...params,
|
||||
tool_approval_mode: input.toolApprovalMode === 'ask' ? 'ask' : 'full'
|
||||
};
|
||||
}
|
||||
return true;
|
||||
} catch (e) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue