(->cache)
(chat-completion messages
{{service wkk/service model-params wkk/model-parameters}
llm.chat/conversation})
(complete prompt {gen-var wkk/gen-var-name :as opts})
(evict prompt model-params)
(generate-with-cache cache? generator prompt model-parameters)
Call generator
function with prompt
and model-parameters
.
If cache?
is true then use cache store previously generated result.
Cache gets a hit if prompt
and model-parameters
are the same.
Call `generator` function with `prompt` and `model-parameters`. If `cache?` is true then use cache store previously generated result. Cache gets a hit if `prompt` and `model-parameters` are the same.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close