Update main.go

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

View File

@ -182,7 +182,7 @@ func (s *ProxyService) InitRoutes(e *gin.Engine) {
v1.POST("/engines/copilot-codex/completions", s.codeCompletions)
}
} else {
e.POST("/v1/chat/completions", s.completions)
e.POST("/chat/completions", s.completions)
e.POST("/v1/engines/copilot-codex/completions", s.codeCompletions)
}
}