diff --git a/cortex.ts b/cortex.ts index 4d5ec9b..fec361f 100644 --- a/cortex.ts +++ b/cortex.ts @@ -134,7 +134,7 @@ export class Cortex { overrides: { companyInfo: body.companyInfo, companyName: body.companyName, - inheritRules: !!body.inheritRules, + inheritRules: body.inheritRules === false ? false : true, }, }; return new Cortex(config, apiClient, name); @@ -156,7 +156,7 @@ export class Cortex { examples: config.chatConfig?.examples, greeting: config.chatConfig?.greeting, intro: config.chatConfig?.intro, - inheritRules: !!config.overrides?.inheritRules, + inheritRules: config.overrides?.inheritRules === false ? false : true, public: !!config.public, instructions: config.instructions, personality: config.customizations?.personality, diff --git a/package-lock.json b/package-lock.json index f527fe8..deee454 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,13 +1,13 @@ { - "name": "cortex-sdk", - "version": "0.0.1", + "name": "@cortexclick/cortex", + "version": "0.0.3", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "cortex-sdk", - "version": "0.0.1", - "license": "ISC", + "name": "@cortexclick/cortex", + "version": "0.0.3", + "license": "Apache-2.0", "dependencies": { "form-data": "^4.0.0" },