Skip to content

Commit 240b7a7

Browse files
committed
refactor: Remove unused temporary fields from model fetching and connection testing in LLMSettings
1 parent 2bea36c commit 240b7a7

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/renderer/src/components/settings/LLMSettings.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,9 @@ function LLMConfigForm({ open, config, onSave, onCancel }: LLMConfigFormProps) {
9494

9595
setModelLoading(true)
9696
const result = await window.api.ai.getModels({
97-
id: 'temp',
98-
name: 'temp',
9997
apiHost,
10098
apiKey,
10199
modelName: '',
102-
createdAt: Date.now()
103100
})
104101

105102
if (result.success && result.models) {
@@ -123,12 +120,9 @@ function LLMConfigForm({ open, config, onSave, onCancel }: LLMConfigFormProps) {
123120
setLoading(true)
124121

125122
const result = await window.api.ai.testConnection({
126-
id: 'temp',
127-
name: values.name,
128123
apiHost: values.apiHost,
129124
apiKey: values.apiKey,
130125
modelName: values.modelName,
131-
createdAt: Date.now()
132126
})
133127

134128
if (result.success) {

0 commit comments

Comments
 (0)