feat(web): getModelListUrl add is_active param

This commit is contained in:
zhaoying
2026-01-27 20:33:23 +08:00
parent 75b3ea1f05
commit 1e481a311a
13 changed files with 28 additions and 25 deletions

View File

@@ -237,7 +237,7 @@ const Agent = forwardRef<AgentRef>((_props, ref) => {
})
}
const getModels = () => {
getModelList({ type: 'llm,chat', pagesize: 100, page: 1 })
getModelList({ type: 'llm,chat', pagesize: 100, page: 1, is_active: true })
.then(res => {
const response = res as { items: Model[] }
setModelList(response.items)