Handbook
Glossary
openai-request ( request -- data )
Vocabulary
openai
.
private
Inputs
request
an
object
Outputs
data
an
object
Definition
USING:
http
http.client
io.encodings.string
io.encodings.utf8
json
kernel
namespaces
openai
;
IN:
openai.private
:
openai-request
( request -- data )
openai-api-key
get
set-bearer-auth
openai-organization
get
[
"OpenAI-Organization"
set-header
]
when*
http-request
nip
utf8
decode
json>
;