Skip to content

Commit

Permalink
Update AppSettingsState.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
acharneski committed Nov 17, 2023
1 parent 3ac3a6c commit c6cb92a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class AppSettingsState : PersistentStateComponent<SimpleEnvelope> {
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,
Expand Down

0 comments on commit c6cb92a

Please sign in to comment.