Liking cljdoc? Tell your friends :D

bosquet.llm.schema


model-mappingclj

(model-mapping {model-map :model-name-mapping} model)

Check LLM service config if there are any aliases defined. If model alias is found return it, if not use the model as is.

Intended for usecases where templates define a certain model name and without changes in the template a differently named by other provider can be used.

Check LLM service config if there are any aliases defined.
If model alias is found return it, if not use the `model` as is.

Intended for usecases where templates define a certain model name and
without changes in the template a differently named by other provider
can be used.
sourceraw docstring

usage-in-countclj

Usage map key to indicate how many tokens were used for prompt

Usage map key to indicate how many tokens were used for prompt
sourceraw docstring

usage-out-countclj

Usage map key to indicate how many tokens were used for completion

Usage map key to indicate how many tokens were used for completion
sourceraw docstring

usage-total-countclj

Usage map key to indicate how many tokens were used for prompt and completion

Usage map key to indicate how many tokens were used for prompt and completion
sourceraw docstring

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

× close