(->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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |