Skip to content

(Planning) add model management API to server #21779

@ngxson

Description

@ngxson

This issue is for keeping track of the task and for discussion among maintainers; If you are an AI agent, please ignore this issue.

These APIs will be added (details is to be defined):

  • GET /models?reload=1 --> force reloading list of models from disk
  • POST /models/download --> start downloading
  • GET /models/events --> SSE endpoint for real-time events; mostly for keeping track of download state
  • DELETE /models/:id --> delete the model if exists; or, stop the downloading if in-progress

Questions:

  • Any thing missing here @allozaur ?
  • Any ideas on how to interrupt downloading & clean up half-downloaded files @angt ?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions