gulihua10010 / chatGptApiSdk

chatGpt Api SDK 封装,支持 GPT-3.5,GPT-4,账单查询,开箱即用,非常简单!
94 stars 25 forks source link

超时时间怎么设置? #13

Closed skyliwq closed 1 year ago

skyliwq commented 1 year ago

大神 超时时间怎么设置?回复太慢 总是卡顿

gulihua10010 commented 1 year ago

在OpenAiAuth类里设置的,初始化时直接 new OpenAiAuth(apiKey, proxy).timeout(60)或者 单独设置: new OpenAiAuth(apiKey, proxy).connectionTimeout(30).readTimeout(60)

gulihua10010 commented 1 year ago

这几天免费的 api key 响应时间确实慢,充钱了好像快点