From 926a9d8a69bb4847d37668fd0a9949db0e215aac Mon Sep 17 00:00:00 2001 From: Aakash Bakhle <48802744+aakashb95@users.noreply.github.com> Date: Tue, 30 Jun 2026 15:14:03 +0530 Subject: [PATCH] fix(captain): default temperature to 0.5 and remove UI control (#14879) # Pull Request Template ## Description - Default temperature to 0.5 and remove UI control - No migrations needed for existing accounts, their current settings are preserved ## Type of change - [x] New feature (non-breaking change which adds functionality) ## How Has This Been Tested? Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration. locally and spec ## Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [x] I have commented on my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] Any dependent changes have been merged and published in downstream modules --- .../settings/AssistantSystemSettingsForm.vue | 23 ------------------- .../i18n/locale/en/integrations.json | 4 ---- enterprise/app/helpers/captain/chat_helper.rb | 2 +- enterprise/app/models/concerns/agentable.rb | 4 +++- .../models/concerns/agentable_spec.rb | 4 ++-- .../llm/assistant_chat_service_spec.rb | 18 +++++++++++++++ 6 files changed, 24 insertions(+), 31 deletions(-) diff --git a/app/javascript/dashboard/components-next/captain/pageComponents/assistant/settings/AssistantSystemSettingsForm.vue b/app/javascript/dashboard/components-next/captain/pageComponents/assistant/settings/AssistantSystemSettingsForm.vue index ee20fded5..c689065fb 100644 --- a/app/javascript/dashboard/components-next/captain/pageComponents/assistant/settings/AssistantSystemSettingsForm.vue +++ b/app/javascript/dashboard/components-next/captain/pageComponents/assistant/settings/AssistantSystemSettingsForm.vue @@ -29,7 +29,6 @@ const initialState = { handoffMessage: '', resolutionMessage: '', instructions: '', - temperature: 1, }; const state = reactive({ ...initialState }); @@ -57,7 +56,6 @@ const updateStateFromAssistant = assistant => { state.handoffMessage = config.handoff_message; state.resolutionMessage = config.resolution_message; state.instructions = config.instructions; - state.temperature = config.temperature || 1; }; const handleSystemMessagesUpdate = async () => { @@ -80,7 +78,6 @@ const handleSystemMessagesUpdate = async () => { ...props.assistant.config, handoff_message: state.handoffMessage, resolution_message: state.resolutionMessage, - temperature: state.temperature || 1, }, }; @@ -131,26 +128,6 @@ watch( class="z-0" /> -
- -
- - {{ state.temperature }} -
-

- {{ t('CAPTAIN.ASSISTANTS.FORM.TEMPERATURE.DESCRIPTION') }} -

-
-