ToolJet/server/src/modules/copilot/copilot.module.ts
Arpit 2ddbd3309e
Feature - ToolJet Copilot 🚀 (#6074)
* add support for Copilot assistance

* clean up

* fixes workspace settings crash

* refactor and resolved review comments

* api endpoint should be inferred from env

* copilot style fixes

* copilot style fixed

* beta tag fro copilot settings: workspace

* fire toast for unauthorised recommendation request

* include the previous code with the newly generated response

* scoping apikeys to orgs

* controller updates for copilot

* copilot org key updated

* disable toggle for new workspaces

* disable toggle for new workspaces

* fixes: multi-workspace toggle updates

* uninstall unsued packages

* fixes button state for copilot in transformations

* updated the urls
2023-05-11 15:04:48 +05:30

14 lines
693 B
TypeScript

import { Module } from '@nestjs/common';
import { CopilotController } from '@controllers/copilot.controller';
import { CopilotService } from '@services/copilot.service';
import { OrgEnvironmentVariablesService } from '@services/org_environment_variables.service';
import { OrgEnvironmentVariable } from 'src/entities/org_envirnoment_variable.entity';
import { EncryptionService } from '@services/encryption.service';
import { TypeOrmModule } from '@nestjs/typeorm';
@Module({
controllers: [CopilotController],
imports: [TypeOrmModule.forFeature([OrgEnvironmentVariable])],
providers: [CopilotService, OrgEnvironmentVariablesService, EncryptionService],
})
export class CopilotModule {}