We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7252fb3 commit f9a2559Copy full SHA for f9a2559
openai/init.moon
@@ -7,8 +7,6 @@ unpack = table.unpack or unpack
7
8
import types from require "tableshape"
9
10
-parse_url = require("socket.url").parse
11
-
12
empty = (types.nil + types.literal(cjson.null))\describe "nullable"
13
14
content_format = types.string + types.array_of types.one_of {
@@ -364,7 +362,6 @@ class OpenAI
364
362
cjson.encode payload
365
363
366
headers = {
367
- "Host": parse_url(@api_base).host
368
"Accept": "application/json"
369
"Content-Type": "application/json"
370
"Content-Length": body and #body or nil
0 commit comments