Split ingress keys into text/image protocols with Replicate model listing.
CI / docker (push) Successful in 3m38s

Add model input defaults (including prompt), workflow model editing, ingress API docs, and fix img2img image upload filenames for signed URLs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
renjue
2026-06-29 21:41:06 +08:00
parent 2665ac1dee
commit 321683f863
35 changed files with 1646 additions and 167 deletions
+7 -2
View File
@@ -14,6 +14,7 @@ import (
"github.com/rose_cat707/luminary/internal/gateway"
"github.com/rose_cat707/luminary/internal/handler/admin"
"github.com/rose_cat707/luminary/internal/handler/files"
v1handler "github.com/rose_cat707/luminary/internal/handler/v1"
"github.com/rose_cat707/luminary/internal/handler/proxy"
"github.com/rose_cat707/luminary/internal/handler/replicate"
"github.com/rose_cat707/luminary/internal/handler/static"
@@ -95,10 +96,14 @@ func main() {
proxyHandler := proxy.New(gw)
v1 := r.Group("/v1", middleware.IPFilter(memCache, model.IPScopeProxy), middleware.IngressAuth(gw))
proxyHandler.Register(v1)
v1.GET("/models", v1handler.NewModelsHandler(gw, predSvc, publicURL).List)
textAPI := v1.Group("", middleware.RequireIngressProtocol(model.IngressProtocolText))
proxyHandler.Register(textAPI)
replicateHandler := replicate.New(predSvc, publicURL)
replicateHandler.Register(v1)
imageAPI := v1.Group("", middleware.RequireIngressProtocol(model.IngressProtocolImage))
replicateHandler.Register(imageAPI)
filesHandler := files.New(imgStore)
filesHandler.Register(r)