Handbook
Glossary
openai-test ( -- )
Vocabulary
openai
.
ui
Word description
Simple code to test connection to OpenAI API.
Definition
USING:
accessors
assocs
io
openai
sequences
;
IN:
openai.ui
:
openai-test
( -- )
init-api-key
cheapest-openai-model
"what is the factor programming language"
<completion>
100
>>max_tokens
create-completion
"choices"
of
first
"text"
of
print
;