refac
This commit is contained in:
1 parent
5b333d75c6
commit
3becec6ccf
1 file changed
+3
-5
@@ -3113,9 +3113,6 @@
|
|||||||
// in the message so the backend can inject their full content.
|
// in the message so the backend can inject their full content.
|
||||||
const skillIds = [...selectedSkillIds];
|
const skillIds = [...selectedSkillIds];
|
||||||
|
|
||||||
// Use the user-selected terminal from the dropdown
|
|
||||||
const activeTerminalId = $selectedTerminalId ?? null;
|
|
||||||
|
|
||||||
// Only send terminal_id if the model has terminal capability enabled
|
// Only send terminal_id if the model has terminal capability enabled
|
||||||
const terminalEnabled = model.info?.meta?.capabilities?.terminal ?? true;
|
const terminalEnabled = model.info?.meta?.capabilities?.terminal ?? true;
|
||||||
const useChatVariablesFallback =
|
const useChatVariablesFallback =
|
||||||
@@ -3139,8 +3136,9 @@
|
|||||||
tool_ids: toolIds.length > 0 ? toolIds : undefined,
|
tool_ids: toolIds.length > 0 ? toolIds : undefined,
|
||||||
skill_ids: skillIds.length > 0 ? skillIds : undefined,
|
skill_ids: skillIds.length > 0 ? skillIds : undefined,
|
||||||
terminal_id:
|
terminal_id:
|
||||||
terminalEnabled && ($terminalServers ?? []).some((t) => t.id && t.id === activeTerminalId)
|
terminalEnabled &&
|
||||||
? activeTerminalId
|
($terminalServers ?? []).some((t) => t.id && t.id === $selectedTerminalId)
|
||||||
|
? $selectedTerminalId
|
||||||
: undefined,
|
: undefined,
|
||||||
tool_servers: [
|
tool_servers: [
|
||||||
...($toolServers ?? []).filter(
|
...($toolServers ?? []).filter(
|
||||||
|
|||||||
Reference in new issue
Block a user