This commit is contained in:
于先森(Mr.Yu) 2024-10-16 11:43:39 +08:00 committed by GitHub
commit 668d44ccec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,8 @@ import (
"math/rand"
)
const DefaultInstructModel = "gpt-3.5-turbo-instruct"
const StableCodeModelPrefix = "stable-code"
@ -206,6 +208,8 @@ func (s *ProxyService) InitRoutes(e *gin.Engine) {
v1.POST("/v1/engines/copilot-codex/completions", s.codeCompletions)
}
} else {
e.POST("/chat/completions", s.completions)
e.POST("/engines/copilot-codex/completions", s.codeCompletions)
e.POST("/v1/chat/completions", s.completions)
e.POST("/v1/engines/copilot-codex/completions", s.codeCompletions)