Skip to content

Commit

Permalink
1.6.2 (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
acharneski authored Sep 13, 2024
1 parent e196980 commit 54446a3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pluginName=intellij-aicoder
pluginRepositoryUrl=https://github.com/SimiaCryptus/intellij-aicoder
pluginVersion=1.6.1
pluginVersion=1.6.2

jvmArgs=-Xmx8g
org.gradle.jvmargs=-Xmx8g
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class ReactTypescriptWebDevelopmentAssistantAction : BaseAction() {
val budget: Double? = 2.00,
val tools: List<String> = emptyList(),
val model: ChatModels = ChatModels.GPT4o,
val parsingModel: ChatModels = ChatModels.GPT35Turbo,
val parsingModel: ChatModels = ChatModels.GPT4oMini,
)

override val settingsClass: Class<*> get() = Settings::class.java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class WebDevelopmentAssistantAction : BaseAction() {
val budget: Double? = 2.00,
val tools: List<String> = emptyList(),
val model: ChatModels = ChatModels.GPT4o,
val parsingModel: ChatModels = ChatModels.GPT35Turbo,
val parsingModel: ChatModels = ChatModels.GPT4oMini,
)

override val settingsClass: Class<*> get() = Settings::class.java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import java.util.*
@State(name = "org.intellij.sdk.settings.AppSettingsState", storages = [Storage("SdkSettingsPlugin.xml")])
data class AppSettingsState(
var temperature: Double = 0.1,
var smartModel: String = ChatModels.GPT35Turbo.modelName,
var fastModel: String = ChatModels.GPT35Turbo.modelName,
var smartModel: String = ChatModels.GPT4o.modelName,
var fastModel: String = ChatModels.GPT4oMini.modelName,
var mainImageModel: String = ImageModels.DallE3.modelName,
var listeningPort: Int = 8081,
var listeningEndpoint: String = "localhost",
Expand Down Expand Up @@ -153,7 +153,7 @@ data class AppSettingsState(
fun String.chatModel(): ChatModels {
return ChatModels.values().entries.firstOrNull {
it.value.modelName == this || it.key == this
}?.value ?: ChatModels.GPT35Turbo
}?.value ?: ChatModels.GPT4oMini
}

fun String.imageModel(): ImageModels {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ open class ActionTestBase {
fun <T : Any> testScript_SelectionAction(selectionAction: SelectionAction<T>, scriptPath: String) {
AppSettingsState.instance.apiKey = ClientUtil.keyMap.mapKeys { it.key }.toMutableMap()
AppSettingsState.instance.temperature = 0.0
AppSettingsState.instance.smartModel = ChatModels.GPT35Turbo.name
AppSettingsState.instance.smartModel = ChatModels.GPT4oMini.name
val input =
selectionAction.javaClass.getResourceAsStream(scriptPath)?.readAllBytes()?.toString(Charsets.UTF_8)
?: ""
Expand Down Expand Up @@ -64,7 +64,7 @@ open class ActionTestBase {
) {
AppSettingsState.instance.apiKey = ClientUtil.keyMap.mapKeys { it.key }.toMutableMap()
AppSettingsState.instance.temperature = 0.0
AppSettingsState.instance.smartModel = ChatModels.GPT35Turbo.name
AppSettingsState.instance.smartModel = ChatModels.GPT4oMini.name
val input =
selectionAction.javaClass.getResourceAsStream(scriptPath)?.readAllBytes()?.toString(Charsets.UTF_8)
?: ""
Expand Down

0 comments on commit 54446a3

Please sign in to comment.