Closed behrica closed 1 year ago
This PR allows to cache the calls to "complete". It is optional and gets configured by adding a implementation of a clojure.core.cache in the params like this:
clojure.core.cache
(def azure-open-ai-config {:model "text-davinci-003" :impl openai/complete-azure-openai :cache (clojure.core.cache.wrapped/fifo-cache-factory {} :threshold 1) :api-key "xxxx" :api-endpoint "https://yyyyy.openai.azure.com/"})
The code depends on PR #17 and would then fix #11
This PR allows to cache the calls to "complete". It is optional and gets configured by adding a implementation of a
clojure.core.cache
in the params like this:The code depends on PR #17 and would then fix #11