Skip to content

Commit 6304080

Browse files
committed
we don't need to specify ssl.https directly
1 parent 56e82b5 commit 6304080

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

openai/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ do
397397
if _G.ngx then
398398
self.config.http_provider = "lapis.nginx.http"
399399
else
400-
self.config.http_provider = "ssl.https"
400+
self.config.http_provider = "socket.http"
401401
end
402402
end
403403
return require(self.config.http_provider)

openai/init.moon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ class OpenAI
415415
@config.http_provider = if _G.ngx
416416
"lapis.nginx.http"
417417
else
418-
"ssl.https"
418+
"socket.http"
419419

420420
require @config.http_provider
421421

0 commit comments

Comments
 (0)