Skip to content

Commit 57b12a2

Browse files
committed
refactor: simplify parameter handling in model list retrieval
1 parent f8249cd commit 57b12a2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ui/src/views/model/index.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,7 @@ const openCreateModel = (provider?: Provider, model_type?: string) => {
200200
}
201201
202202
const list_model = () => {
203-
//const params = active_provider.value?.provider ? { provider: active_provider.value.provider } : {}
204-
const params = {}
203+
const params = active_provider.value?.provider ? { provider: active_provider.value.provider } : {}
205204
loadSharedApi({ type: 'model', isShared: isShared.value, systemType: apiType.value })
206205
.getModelList({ ...model_search_form.value, ...params }, list_model_loading)
207206
.then((ok: any) => {

0 commit comments

Comments
 (0)