Skip to content

Commit 660da45

Browse files
fix(serve): align list models response object
1 parent 5a628f6 commit 660da45

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

runner/server/handler/model.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ func ListModels(c *gin.Context) {
3232
})
3333
}
3434

35-
c.JSON(http.StatusOK, res)
35+
c.JSON(http.StatusOK, map[string]any{
36+
"object": "list",
37+
"data": res,
38+
})
3639
}
3740

3841
func RetrieveModel(c *gin.Context) {

0 commit comments

Comments
 (0)