coai/manager/router.go
2023-12-25 09:30:39 +08:00

18 lines
409 B
Go

package manager
import (
"chat/manager/broadcast"
"github.com/gin-gonic/gin"
)
func Register(app *gin.RouterGroup) {
app.GET("/chat", ChatAPI)
app.GET("/v1/models", ModelAPI)
app.GET("/v1/charge", ChargeAPI)
app.GET("/dashboard/billing/usage", GetBillingUsage)
app.GET("/dashboard/billing/subscription", GetSubscription)
app.POST("/v1/chat/completions", TranshipmentAPI)
broadcast.Register(app)
}