feat: 支持gpt4.0的自定义 (#93)

This commit is contained in:
二丫讲梵
2023-03-15 18:10:04 +08:00
committed by GitHub
parent 4ff2f39c42
commit 5a796061da
5 changed files with 11 additions and 8 deletions

View File

@@ -28,7 +28,6 @@ func New(userId string) *ChatGPT {
var ctx context.Context
var cancel func()
// public.Config.BaseURL, public.Config.ApiKey, public.Config.HttpProxy
if public.Config.SessionTimeout == 0 {
ctx, cancel = context.WithCancel(context.Background())
} else {