Update main.go

This commit is contained in:
yx135 2024-06-08 10:18:59 +08:00 committed by GitHub
parent e408f0fd25
commit c251f84df5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -179,14 +179,13 @@ func (s *ProxyService) InitRoutes(e *gin.Engine) {
v1 := e.Group("/:token/", AuthMiddleware(authToken))
{
v1.POST("/chat/completions", s.completions)
v1.POST("/engines/copilot-codex/completions", s.codeCompletions)
v1.POST("/v1/engines/copilot-codex/completions", s.codeCompletions)
}
} else {
e.POST("/chat/completions", s.completions)
e.POST("/v1/engines/copilot-codex/completions", s.codeCompletions)
}
}
type Pong struct {
Now int `json:"now"`
Status string `json:"status"`