From 93ca8e30beff1b0a88ef44f05e943d13077d55a1 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 25 Dec 2023 19:07:11 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20jetbrains=20default=20conf?= =?UTF-8?q?ig.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/intellij/gradle.properties | 2 +- .../constants/ServerConstants.kt | 71 +++++++++---------- 2 files changed, 34 insertions(+), 39 deletions(-) diff --git a/extensions/intellij/gradle.properties b/extensions/intellij/gradle.properties index 4da9ab8ec..19a394c5f 100644 --- a/extensions/intellij/gradle.properties +++ b/extensions/intellij/gradle.properties @@ -4,7 +4,7 @@ pluginGroup = com.github.continuedev.continueintellijextension pluginName = continue-intellij-extension pluginRepositoryUrl = https://github.com/continuedev/continue # SemVer format -> https://semver.org -pluginVersion = 0.0.24 +pluginVersion = 0.0.25 # Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html pluginSinceBuild = 223 diff --git a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/ServerConstants.kt b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/ServerConstants.kt index c28cb8e00..38c16ae24 100644 --- a/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/ServerConstants.kt +++ b/extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/ServerConstants.kt @@ -5,60 +5,55 @@ import java.nio.file.Paths const val DEFAULT_CONFIG = """ { - models: [ + "models": [ { - title: "GPT-4", - provider: "openai-free-trial", - model: "gpt-4", + "title": "GPT-4", + "provider": "openai-free-trial", + "model": "gpt-4" }, { - title: "GPT-3.5-Turbo", - provider: "openai-free-trial", - model: "gpt-3.5-turbo", - }, + "title": "GPT-3.5-Turbo", + "provider": "openai-free-trial", + "model": "gpt-3.5-turbo" + } ], - modelRoles: { - default: "GPT-4", - summarize: "GPT-3.5-Turbo", - }, - slashCommands: [ + "slashCommands": [ { - name: "edit", - description: "Edit highlighted code", - step: "EditHighlightedCodeStep", + "name": "edit", + "description": "Edit highlighted code", + "step": "EditHighlightedCodeStep" }, { - name: "comment", - description: "Write comments for the highlighted code", - step: "CommentCodeStep", + "name": "comment", + "description": "Write comments for the highlighted code", + "step": "CommentCodeStep" }, { - name: "share", - description: "Download and share this session", - step: "ShareSessionStep", + "name": "share", + "description": "Download and share this session", + "step": "ShareSessionStep" }, { - name: "cmd", - description: "Generate a shell command", - step: "GenerateShellCommandStep", - }, + "name": "cmd", + "description": "Generate a shell command", + "step": "GenerateShellCommandStep" + } ], - customCommands: [ + "customCommands": [ { - name: "test", - prompt: - "Write a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.", - description: "Write unit tests for highlighted code", - }, + "name": "test", + "prompt": "Write a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.", + "description": "Write unit tests for highlighted code" + } ], - contextProviders: [ - { name: "diff", params: {} }, + "contextProviders": [ + { "name": "diff", "params": {} }, { - name: "open", - params: {}, + "name": "open", + "params": {} }, - { name: "terminal", params: {} }, - ], + { "name": "terminal", "params": {} } + ] } """