fallback model
This commit is contained in:
parent
ddbe908873
commit
8351543f62
3
main.go
3
main.go
|
|
@ -221,6 +221,9 @@ func (s *ProxyService) codeCompletions(c *gin.Context) {
|
|||
|
||||
body, _ = sjson.DeleteBytes(body, "extra")
|
||||
body, _ = sjson.DeleteBytes(body, "nwo")
|
||||
if s.cfg.CodexModelDefault == "" {
|
||||
s.cfg.CodexModelDefault = "gpt-3.5-turbo-instruct"
|
||||
}
|
||||
body, _ = sjson.SetBytes(body, "model", s.cfg.CodexModelDefault)
|
||||
|
||||
proxyUrl := s.cfg.CodexApiBase
|
||||
|
|
|
|||
Loading…
Reference in New Issue