Handbook
Glossary
com-send ( window -- )
Vocabulary
openai
.
ui
Inputs
window
an
object
Outputs
None
Definition
USING:
accessors
assocs
kernel
openai
sequences
ui.gadgets.editors
;
IN:
openai.ui
:
com-send
( window -- )
completion
new
1000
>>max_tokens
cheapest-openai-model
>>model
over
ask>>
editor-string
>>prompt
create-completion
"choices"
of
first
"text"
of
over
dim>>
first
wrap-result
over
response>>
set-editor-string
drop
;