(-api-audio endpoint
filename
{:keys [prompt model response-format temperature language]
:or {prompt ""
model "whisper-1"
response-format :json
temperature 1.0
language "en"}})
(-api-openai endpoint
&
{:keys [body multipart version method]
:or {version "v1" method :get}})
(chat messages
&
{:keys [model temperature count max-tokens stop presence-penalty
frequency-penalty]
:or {model "gpt-3.5-turbo"
temperature 1.0
count 1
presence-penalty 0
frequency-penalty 0}})
(completion prompt
&
{:keys [model max-tokens temperature count echo stop
presence-penalty frequency-penalty logprobs best-of]
:or {model "text-davinci-003"
max-tokens 2048
temperature 1.0
count 1
echo false
presence-penalty 0
frequency-penalty 0
best-of 1}})
(image prompt
&
{:keys [count size response-format]
:or {count 1 size 1024 response-format :url}})
(image-edit filename
prompt
&
{:keys [mask count size response-format]
:or {size 1024 response-format :url count 1}
:as opts})
(image-variations filename
&
{:keys [count size response-format]
:or {size 1024 response-format :url count 1}
:as opts})
(map->multipart m)
General file request utility. Takes a map and returns a multi-part set of parameters suitable for feeding into the API
General file request utility. Takes a map and returns a multi-part set of parameters suitable for feeding into the API
(transcription filename
&
{:keys [prompt response-format temperature language] :as opts})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close