feat: implement openai integration (#1245)

* feat: implement openai integration

* chore: update
This commit is contained in:
boojack
2023-03-04 18:22:10 +08:00
committed by GitHub
parent dd625d8edc
commit df04e852bf
14 changed files with 487 additions and 32 deletions

View File

@ -59,7 +59,7 @@ func (s *Server) registerSystemRoutes(g *echo.Group) {
return echo.NewHTTPError(http.StatusInternalServerError, "Failed to find system setting list").SetInternal(err)
}
for _, systemSetting := range systemSettingList {
if systemSetting.Name == api.SystemSettingServerID || systemSetting.Name == api.SystemSettingSecretSessionName {
if systemSetting.Name == api.SystemSettingServerID || systemSetting.Name == api.SystemSettingSecretSessionName || systemSetting.Name == api.SystemSettingOpenAIAPIKeyName {
continue
}