Liking cljdoc? Tell your friends :D

bosquet.complete


->cacheclj

(->cache)

cacheclj


chat-completionclj

(chat-completion messages
                 {{service wkk/service model-params wkk/model-parameters}
                    llm.chat/conversation})

completeclj

(complete prompt {gen-var wkk/gen-var-name :as opts})

evictclj

(evict prompt model-params)

generate-with-cacheclj

(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.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close