File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
packages/amazonq/src/inlineChat Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 55import * as vscode from 'vscode'
66import { InlineChatController } from '../inlineChat/controller/inlineChatController'
77import { registerInlineCommands } from '../inlineChat/command/registerInlineCommands'
8+ import { isSageMaker } from 'aws-core-vscode/shared'
9+ import { isIamConnection } from '../../../core/dist/src/auth/connection'
10+ import { AuthUtil } from 'aws-core-vscode/codewhisperer'
811
912export function init ( context : vscode . ExtensionContext ) {
10- const inlineChatController = new InlineChatController ( context )
11- registerInlineCommands ( context , inlineChatController )
13+ if ( ! ( isSageMaker ( ) && isIamConnection ( AuthUtil . instance . conn ) ) ) {
14+ const inlineChatController = new InlineChatController ( context )
15+ registerInlineCommands ( context , inlineChatController )
16+ }
1217}
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ export class InlineChatProvider {
120120 let response : GenerateAssistantResponseCommandOutput | undefined = undefined
121121 session . createNewTokenSource ( )
122122 try {
123- response = await session . chat ( request )
123+ response = await session . chatSso ( request )
124124 getLogger ( ) . info (
125125 `response to tab: ${ tabID } conversationID: ${ session . sessionIdentifier } requestID: ${ response . $metadata . requestId } metadata: ${ JSON . stringify (
126126 response . $metadata
You can’t perform that action at this time.
0 commit comments