support fetch models

This commit is contained in:
Sakurasan
2025-04-21 01:30:17 +08:00
parent d426781e47
commit 470e49b850
3 changed files with 63 additions and 1 deletions

View File

@@ -124,7 +124,7 @@ func SetRouter(cfg *config.Config, db *gorm.DB, web *embed.FS) {
{
// v1.POST("/v2/*proxypath", router.HandleProxy)
v1.POST("/*proxypath", proxy.HandleProxy)
// v1.GET("/models", dashboard.HandleModels)
v1.GET("/models", proxy.HandleModels)
}
idxFS, err := fs.Sub(web, "dist")