chore: remove openai setting section (#2084)

This commit is contained in:
boojack
2023-08-05 21:39:12 +08:00
committed by GitHub
parent 238f896907
commit 218159bf83
5 changed files with 3 additions and 142 deletions

View File

@ -73,11 +73,6 @@ func NewServer(ctx context.Context, profile *profile.Profile, store *store.Store
}))
e.Use(middleware.TimeoutWithConfig(middleware.TimeoutConfig{
Skipper: func(c echo.Context) bool {
// this is a hack to skip timeout for openai chat streaming
// because streaming require to flush response. But the timeout middleware will break it.
return c.Request().URL.Path == "/api/v1/openai/chat-streaming"
},
ErrorMessage: "Request timeout",
Timeout: 30 * time.Second,
}))