Elffuss BraidHub

kikocis/continue public

correction
Changeset3cf95f0b2a97b7de7a6292e8ecb9bb897819fa21f51465bec9f9847097e03f90
Authoruinstinct <61635505+uinstinct@users.noreply.github.com> · 2025-05-26 18:42 +05:30
Committeruinstinct <61635505+uinstinct@users.noreply.github.com> · 2025-05-26 18:42 +05:30
Parentsbdbad06b302d

Browse the files at this changeset

1 file changed

modified gui/src/redux/thunks/streamNormalInput.ts +1 −2
@@ -36,7 +36,6 @@
3636 throw new Error("Default model not defined");
3737 }
3838
39- const isInEdit = state.session.isInEdit;
4039 let completionOptions: LLMFullCompletionOptions = {};
4140 const activeTools = selectActiveTools(state);
4241 const toolsSupported = modelSupportsTools(selectedChatModel);
@@ -83,7 +82,7 @@
8382 modelProvider: selectedChatModel.underlyingProviderName,
8483 modelTitle: selectedChatModel.title,
8584 sessionId: state.session.id,
86- ...(isInEdit && {
85+ ...(state.session.mode === 'agent' && {
8786 tools: activeTools.map((tool) => tool.function.name),
8887 }),
8988 },