mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-04-29 20:20:37 +00:00
Use OpenAI-compatible /v1/models endpoint by default (#17689)
* refactor: Data fetching via stores * chore: update webui build output * refactor: Use OpenAI compat `/v1/models` endpoint by default to list models * chore: update webui build output * chore: update webui build output
This commit is contained in:
parent
41c5e02f42
commit
e9f9483464
11 changed files with 45 additions and 90 deletions
|
|
@ -15,7 +15,7 @@ sequenceDiagram
|
|||
Stores->>DB: load conversations
|
||||
Stores->>API: GET /props
|
||||
API-->>Stores: {role: "router"}
|
||||
Stores->>API: GET /models
|
||||
Stores->>API: GET /v1/models
|
||||
API-->>Stores: models[] with status (loaded/available)
|
||||
loop each loaded model
|
||||
Stores->>API: GET /props?model=X
|
||||
|
|
@ -28,7 +28,7 @@ sequenceDiagram
|
|||
alt model not loaded
|
||||
Stores->>API: POST /models/load
|
||||
loop poll status
|
||||
Stores->>API: GET /models
|
||||
Stores->>API: GET /v1/models
|
||||
API-->>Stores: check if loaded
|
||||
end
|
||||
Stores->>API: GET /props?model=X
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue