Skip to content

Commit b8cf3fb

Browse files
committed
refactor: simplify parameter handling in model list retrieval
1 parent 4be3080 commit b8cf3fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/src/views/model/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ 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 } : {}
203+
//const params = active_provider.value?.provider ? { provider: active_provider.value.provider } : {}
204+
const params = {}
204205
loadSharedApi({ type: 'model', isShared: isShared.value, systemType: apiType.value })
205206
.getModelList({ ...model_search_form.value, ...params }, list_model_loading)
206207
.then((ok: any) => {

0 commit comments

Comments
 (0)