优化聊天会话管理,支持 websocket 断开重连之后能继续连接会话上下文

This commit is contained in:
RockYang
2023-03-24 14:24:49 +08:00
parent 2067aa3f83
commit bb019f3552
9 changed files with 244 additions and 317 deletions

View File

@@ -52,7 +52,7 @@ func NewDefaultConfig() *Config {
MaxAge: 86400,
Secure: true,
HttpOnly: false,
SameSite: http.SameSiteNoneMode,
SameSite: http.SameSiteLaxMode,
},
Chat: Chat{
ApiURL: "https://api.openai.com/v1/chat/completions",