Liking cljdoc? Tell your friends :D

semantic-router-clj.openai


api-keyclj


embedding-model?clj


extract-embeddingsclj

(extract-embeddings data)

Extracts and accumulates the embedding values from a sequence of maps in data.

Extracts and accumulates the `embedding` values from a sequence of maps in `data`.
raw docstring

generate-embeddingsclj

(generate-embeddings body)

Makes a POST request to a specified LLM API endpoint with given headers and body.

Makes a POST request to a specified LLM API endpoint with given headers and body.
raw docstring

set-api-keyclj

(set-api-key value)

Sets the global api-key variable to the given value.

Sets the global `api-key` variable to the given value.
raw docstring

validate-api-keyclj

(validate-api-key)

Checks if the global api-key variable is set to a non-nil value. Returns true if set, false otherwise.

Checks if the global `api-key` variable is set to a non-nil value. Returns true if set, false otherwise.
raw docstring

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

× close