Update InlineEditAction.kt
This commit is contained in:
parent
cdf7b01768
commit
5bf9845613
1 changed files with 2 additions and 1 deletions
|
|
@ -130,7 +130,8 @@ fun openInlineEdit(project: Project?, editor: Editor) {
|
|||
val modelTitles = mutableListOf<String>()
|
||||
|
||||
continuePluginService.coreMessenger?.request("config/getSerializedProfileInfo", null, null) { response ->
|
||||
val result = (response as Map<String, Any>)["result"] as Map<String, Any>
|
||||
val content = (response as Map<String, Any>)["content"] as Map<String, Any>
|
||||
val result = content["result"] as Map<String, Any>
|
||||
val config = result["config"] as Map<String, Any>
|
||||
val models = config["models"] as List<Map<String, Any>>
|
||||
modelTitles.addAll(models.map { it["title"] as String })
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue