File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/kotlin/cc/unitmesh/devti/llms/openai Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,11 @@ class OpenAIProvider(val project: Project) : LLMProvider {
35
35
private val timeout = Duration .ofSeconds(defaultTimeout)
36
36
private val openAiVersion: String
37
37
get() {
38
- val customModel = AutoDevSettingsState .getInstance().customModel
39
- if (AutoDevSettingsState .getInstance().openAiModel == SELECT_CUSTOM_MODEL ) {
40
- AutoDevSettingsState .getInstance().openAiModel = customModel
38
+ val model = AutoDevSettingsState .getInstance().openAiModel
39
+ if (model == SELECT_CUSTOM_MODEL ) {
40
+ return AutoDevSettingsState .getInstance().customModel
41
41
}
42
- return AutoDevSettingsState .getInstance().openAiModel
42
+ return model
43
43
}
44
44
private val openAiKey: String
45
45
get() = AutoDevSettingsState .getInstance().openAiKey
You can’t perform that action at this time.
0 commit comments