JavaScript
Caching - Javascript SDK
Caching Responses
PromptDesk caches responses on the application side and on the server side.
By default, caching is disabled on the application side. To enable caching on the server side, set the cache
parameter to True
.
const recipe = pd.generate("recipe-generator", {
"cuisine": "italian",
"minutes": 20
}, {
cache: true
})