Skip to content

Commit e8cee82

Browse files
committed
correct the Endpoint
1 parent 8d8742e commit e8cee82

File tree

1 file changed

+2
-1
lines changed
  • plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/util

1 file changed

+2
-1
lines changed

plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/util/CodeWhispererConstants.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package software.aws.toolkits.jetbrains.services.codewhisperer.util
66
import com.intellij.openapi.actionSystem.DataKey
77
import com.intellij.openapi.editor.markup.EffectType
88
import com.intellij.openapi.editor.markup.TextAttributes
9+
import com.intellij.openapi.util.registry.Registry
910
import com.intellij.ui.JBColor
1011
import software.amazon.awssdk.regions.Region
1112
import software.amazon.awssdk.services.codewhispererruntime.model.AccessDeniedException
@@ -154,7 +155,7 @@ object CodeWhispererConstants {
154155

155156
object Config {
156157
val CODEWHISPERER_ENDPOINT
157-
get() = "https://rts.gamma-us-west-2.codewhisperer.ai.aws.dev/"
158+
get() = Registry.get("amazon.q.endpoint").asString()
158159

159160
const val CODEWHISPERER_IDPOOL_ID = "us-east-1:70717e99-906f-4add-908c-bd9074a2f5b9"
160161
val Sigv4ClientRegion = Region.US_EAST_1

0 commit comments

Comments
 (0)