diff --git a/src/main/kotlin/com/github/simiacryptus/aicoder/config/AppSettingsState.kt b/src/main/kotlin/com/github/simiacryptus/aicoder/config/AppSettingsState.kt index 66fe3619..0d7b93ad 100644 --- a/src/main/kotlin/com/github/simiacryptus/aicoder/config/AppSettingsState.kt +++ b/src/main/kotlin/com/github/simiacryptus/aicoder/config/AppSettingsState.kt @@ -38,7 +38,7 @@ class AppSettingsState : PersistentStateComponent { return createChatRequest(defaultChatModel()) } - fun defaultChatModel() = Models.entries.first { it.modelName == modelName } + fun defaultChatModel(): Model = Models.entries.first { it.modelName == modelName } private fun createChatRequest(model: Model): ChatRequest = ChatRequest( model = model.modelName,