MCPcopy Create free account
hub / github.com/apitable/apitable / forRoot

Method forRoot

packages/room-server/src/ai/ai.dynamic.module.ts:25–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23@Module({})
24export class AiDynamicModule {
25 static forRoot(): DynamicModule {
26 const enterpriseModulePath = path.join(__dirname, '../enterprise/ai');
27 const isEnterpriseLevel: boolean = fs.existsSync(enterpriseModulePath);
28 if (isEnterpriseLevel) {
29 const { AiEnterpriseModule } = require(`${enterpriseModulePath}/ai.enterprise.module`);
30 return {
31 module: AiEnterpriseModule,
32 };
33 }
34 return {
35 module: AiModule,
36 };
37 }
38}
39
40@Module({})

Calls 1

joinMethod · 0.65

Tested by

no test coverage detected