openai-test ( -- )


Vocabulary
openai.ui

Word description
Simple code to test connection to OpenAI API.

Definition


: openai-test ( -- )
init-api-key "text-davinci-003"
"what is the factor programming language" <completion>
100 >>max_tokens create-completion "choices" of
first "text" of print ;