Liking cljdoc? Tell your friends :D

bosquet.llm.cohere


chatclj

(chat params)
(chat {api-key :api-key url :api-endpoint} {messages :messages :as params})
source

chatml->cohereclj

(chatml->cohere messages)

Transform ChatML messages to the message data shape required by Cohere API

Transform ChatML messages to the message data shape required by Cohere API
sourceraw docstring

completeclj

(complete params)
(complete {api-key :api-key url :api-endpoint} params)
source

usage->canonicalclj

(usage->canonical {:keys [input_tokens output_tokens]})
source

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

× close