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 98c244e commit 549ecf3Copy full SHA for 549ecf3
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 {
@@ -366,7 +364,6 @@ class OpenAI
366
364
cjson.encode payload
367
365
368
headers = {
369
- "Host": parse_url(@api_base).host
370
"Accept": "application/json"
371
"Content-Type": "application/json"
372
"Content-Length": body and #body or nil
0 commit comments