mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: remove openai setting section (#2084)
This commit is contained in:
@ -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,
|
||||
}))
|
||||
|
Reference in New Issue
Block a user