Changesets · Branches · Tags · Compare
| Changeset | 3cf95f0b2a97b7de7a6292e8ecb9bb897819fa21f51465bec9f9847097e03f90 |
|---|---|
| Author | uinstinct <61635505+uinstinct@users.noreply.github.com> · 2025-05-26 18:42 +05:30 |
| Committer | uinstinct <61635505+uinstinct@users.noreply.github.com> · 2025-05-26 18:42 +05:30 |
| Parents | bdbad06b302d |
1 file changed
modified gui/src/redux/thunks/streamNormalInput.ts +1 −2
| @@ -36,7 +36,6 @@ | ||
| 36 | 36 | throw new Error("Default model not defined"); |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | - const isInEdit = state.session.isInEdit; | |
| 40 | 39 | let completionOptions: LLMFullCompletionOptions = {}; |
| 41 | 40 | const activeTools = selectActiveTools(state); |
| 42 | 41 | const toolsSupported = modelSupportsTools(selectedChatModel); |
| @@ -83,7 +82,7 @@ | ||
| 83 | 82 | modelProvider: selectedChatModel.underlyingProviderName, |
| 84 | 83 | modelTitle: selectedChatModel.title, |
| 85 | 84 | sessionId: state.session.id, |
| 86 | - ...(isInEdit && { | |
| 85 | + ...(state.session.mode === 'agent' && { | |
| 87 | 86 | tools: activeTools.map((tool) => tool.function.name), |
| 88 | 87 | }), |
| 89 | 88 | }, |