UNPKG

directus-extension-ai-sdk-bundle

Version:

A small bundle of Flow Operations which enable interaction with the [OpenAI](https://beta.openai.com/overview) and [Stability](https://stability.ai/) API's.

9 lines (7 loc) 245 B
export async function getSetting(service, field, override) { if (override) return override; const found = await service .readSingleton({ fields: [field] }) .catch(() => false); return !found ? null : found[field]; }