feat: use session access_tokens

This commit is contained in:
swve 2024-06-01 12:23:01 +01:00
parent 08cc97f557
commit 52f2235942
74 changed files with 413 additions and 440 deletions

View file

@ -13,17 +13,14 @@ function useGetAIFeatures(props: UseGetAIFeatures) {
const config = org?.config?.config?.AIConfig
if (!config) {
console.log('AI or Organization config is not defined.')
return false
}
if (!config.enabled) {
console.log('AI is not enabled for this Organization.')
return false
}
if (!config.features[feature]) {
console.log(`Feature ${feature} is not enabled for this Organization.`)
return false
}