From b9499406534216549593aa555d6b7bddd1b68689 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Fri, 6 Sep 2024 15:44:23 +0100 Subject: [PATCH] remove comments --- packages/backend-core/src/configs/configs.ts | 39 -------------------- 1 file changed, 39 deletions(-) diff --git a/packages/backend-core/src/configs/configs.ts b/packages/backend-core/src/configs/configs.ts index 17f4abfe24..1eafd9596e 100644 --- a/packages/backend-core/src/configs/configs.ts +++ b/packages/backend-core/src/configs/configs.ts @@ -256,42 +256,3 @@ export async function getSCIMConfig(): Promise { const config = await getConfig(ConfigType.SCIM) return config?.config } - - -// AI - -// TODO: Can we assume that you are licensed when you hit this endpoint? -// export async function getAIConfig(): Promise { - // if (!env.SELF_HOSTED) { - // // always use the env vars in cloud - // // TODO: Licensing stuff - make this right - // if (env.OPENAI_API_KEY) { - // return getDefaultBudibaseAIConfig() - // } - // } - - // prefer the config in self-host - // let config = await getConfig(ConfigType.AI) - - // fallback to env vars - // if (!config || !config.activated) { - // config = getDefaultBudibaseAIConfig() - // } - - // return config -// } - -// export function getDefaultBudibaseAIConfig(): AIInnerConfig | undefined { -// if (env.OPENAI_API_KEY) { -// return { -// provider: "", -// isDefault: true, -// name: "Budibase AI", -// active: true, -// baseUrl: "", -// apiKey: env.OPENAI_API_KEY, -// // TODO: should be enum -// defaultModel: "" -// } -// } -// }