@@ -33,13 +33,6 @@ class LLMSettingComponent(private val settings: AutoDevSettingsState) {
33
33
private val customEngineServerParam by LLMParam .creating { Editable (settings.customEngineServer) }
34
34
private val customEngineTokenParam by LLMParam .creating { Password (settings.customEngineToken) }
35
35
36
- private val xingHuoApiVersionParam by LLMParam .creating {
37
- ComboBox (" ${settings.xingHuoApiVersion} " , XingHuoApiVersion .values().toList().map { it.toString() })
38
- }
39
- private val xingHuoAppIDParam by LLMParam .creating { Editable (settings.xingHuoAppId) }
40
- private val xingHuoApiKeyParam by LLMParam .creating { Password (settings.xingHuoApiKey) }
41
- private val xingHuoApiSecretParam by LLMParam .creating { Password (settings.xingHuoApiSecrect) }
42
-
43
36
private val customEngineResponseTypeParam by LLMParam .creating { ComboBox (settings.customEngineResponseType, ResponseType .values().map { it.name }.toList()) }
44
37
private val customEngineResponseFormatParam by LLMParam .creating { Editable (settings.customEngineResponseFormat) }
45
38
private val customEngineRequestBodyFormatParam by LLMParam .creating { Editable (settings.customEngineRequestFormat) }
@@ -185,10 +178,6 @@ class LLMSettingComponent(private val settings: AutoDevSettingsState) {
185
178
customEngineResponseTypeParam.value = customEngineResponseType
186
179
customEngineTokenParam.value = customEngineToken
187
180
openAIModelsParam.value = openAiModel
188
- xingHuoApiVersionParam.value = xingHuoApiVersion.toString()
189
- xingHuoAppIDParam.value = xingHuoAppId
190
- xingHuoApiKeyParam.value = xingHuoApiKey
191
- xingHuoApiSecretParam.value = xingHuoApiSecrect
192
181
languageParam.value = language
193
182
aiEngineParam.value = aiEngine
194
183
customEnginePrompt.text = customPrompts
@@ -208,10 +197,6 @@ class LLMSettingComponent(private val settings: AutoDevSettingsState) {
208
197
openAiKey = openAIKeyParam.value
209
198
customModel = customModelParam.value
210
199
customOpenAiHost = customOpenAIHostParam.value
211
- xingHuoApiSecrect = xingHuoApiSecretParam.value
212
- xingHuoApiVersion = XingHuoApiVersion .of(xingHuoApiVersionParam.value)
213
- xingHuoAppId = xingHuoAppIDParam.value
214
- xingHuoApiKey = xingHuoApiKeyParam.value
215
200
aiEngine = aiEngineParam.value
216
201
language = languageParam.value
217
202
customEngineServer = customEngineServerParam.value
@@ -233,10 +218,6 @@ class LLMSettingComponent(private val settings: AutoDevSettingsState) {
233
218
settings.gitlabToken != gitLabTokenParam.value ||
234
219
settings.openAiKey != openAIKeyParam.value ||
235
220
settings.customModel != customModelParam.value ||
236
- settings.xingHuoApiSecrect != xingHuoApiSecretParam.value ||
237
- settings.xingHuoApiVersion != XingHuoApiVersion .of(xingHuoApiVersionParam.value) ||
238
- settings.xingHuoAppId != xingHuoAppIDParam.value ||
239
- settings.xingHuoApiKey != xingHuoApiKeyParam.value ||
240
221
settings.aiEngine != aiEngineParam.value ||
241
222
settings.language != languageParam.value ||
242
223
settings.customEngineServer != customEngineServerParam.value ||
0 commit comments