Merge branch 'feature/cw-6123' of github.com:chatwoot/chatwoot into feature/cw-6123

This commit is contained in:
Shivam Mishra
2025-12-23 19:48:24 +05:30
3 changed files with 6 additions and 8 deletions
+3 -3
View File
@@ -236,13 +236,13 @@ RSpec.describe Account do
describe 'with saved model preferences' do
it 'returns saved preferences merged with defaults' do
account.update!(captain_models: { 'editor' => 'gpt-4.1-mini', 'assistant' => 'gpt-5.1' })
account.update!(captain_models: { 'editor' => 'gpt-4.1-mini', 'assistant' => 'gpt-5.2' })
prefs = account.captain_preferences
expect(prefs[:models]['editor']).to eq('gpt-4.1-mini')
expect(prefs[:models]['assistant']).to eq('gpt-5.1')
expect(prefs[:models]['copilot']).to eq(Llm::Models.default_model_for('copilot'))
expect(prefs[:models]['assistant']).to eq('gpt-5.2')
expect(prefs[:models]['copilot']).to eq(Llm::ConfigService.default_model_for_feature('copilot'))
end
end