Skip to content

Commit b1dec95

Browse files
committed
hardcode model selection to true
1 parent 4b5cb78 commit b1dec95

File tree

2 files changed

+2
-6
lines changed
  • plugins/amazonq
    • chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview
    • shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/flareChat

2 files changed

+2
-6
lines changed

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview/Browser.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class Browser(parent: Disposable, private val webUri: URI, val project: Project)
148148
{
149149
agenticMode: true,
150150
quickActionCommands: [],
151-
modelSelectionEnabled: ${isModelSelectionEnabled()},
151+
modelSelectionEnabled: true,
152152
disclaimerAcknowledged: ${MeetQSettings.getInstance().disclaimerAcknowledged},
153153
pairProgrammingAcknowledged: ${MeetQSettings.getInstance().pairProgrammingAcknowledged}
154154
},
@@ -262,8 +262,6 @@ class Browser(parent: Disposable, private val webUri: URI, val project: Project)
262262
.let { OBJECT_MAPPER.writeValueAsString(it) }
263263
?: "[]"
264264

265-
private fun isModelSelectionEnabled() = AwsServerCapabilitiesProvider.getInstance(project).getChatOptions().modelSelection
266-
267265
companion object {
268266
private const val MAX_ONBOARDING_PAGE_COUNT = 3
269267
private val OBJECT_MAPPER = jacksonObjectMapper()

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/flareChat/AwsServerCapabilitiesProvider.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ class AwsServerCapabilitiesProvider {
3434
),
3535
history = true,
3636
export = true,
37-
mcpServers = true,
38-
modelSelection = true
37+
mcpServers = true
3938
)
4039
}
4140
}
@@ -49,7 +48,6 @@ data class ChatOptions(
4948
val history: Boolean,
5049
val export: Boolean,
5150
val mcpServers: Boolean,
52-
val modelSelection: Boolean,
5351
)
5452

5553
data class QuickActions(

0 commit comments

Comments
 (0)