Update main.go
This commit is contained in:
parent
e408f0fd25
commit
c251f84df5
3
main.go
3
main.go
|
|
@ -179,14 +179,13 @@ func (s *ProxyService) InitRoutes(e *gin.Engine) {
|
||||||
v1 := e.Group("/:token/", AuthMiddleware(authToken))
|
v1 := e.Group("/:token/", AuthMiddleware(authToken))
|
||||||
{
|
{
|
||||||
v1.POST("/chat/completions", s.completions)
|
v1.POST("/chat/completions", s.completions)
|
||||||
v1.POST("/engines/copilot-codex/completions", s.codeCompletions)
|
v1.POST("/v1/engines/copilot-codex/completions", s.codeCompletions)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
e.POST("/chat/completions", s.completions)
|
e.POST("/chat/completions", s.completions)
|
||||||
e.POST("/v1/engines/copilot-codex/completions", s.codeCompletions)
|
e.POST("/v1/engines/copilot-codex/completions", s.codeCompletions)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type Pong struct {
|
type Pong struct {
|
||||||
Now int `json:"now"`
|
Now int `json:"now"`
|
||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue