@things-factory/codelingua 9.0.0-beta.34 → 9.0.0-beta.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ const env_1 = require("@things-factory/env");
6
6
  const OPENAI = env_1.config.get('openai', {});
7
7
  const { organization, apiKey } = OPENAI;
8
8
  if (!organization || !apiKey) {
9
- console.error("'OPENAI_API_KEY' is not configured.");
9
+ console.error("[ openai-connection@codelingua ] 'OPENAI_API_KEY' is not configured");
10
10
  }
11
11
  const configuration = new openai_1.Configuration({
12
12
  organization,
@@ -1 +1 @@
1
- {"version":3,"file":"openai-connection.js","sourceRoot":"","sources":["../../server/controllers/openai-connection.ts"],"names":[],"mappings":";;;AAAA,mCAAiD;AACjD,6CAA4C;AAE5C,MAAM,MAAM,GAAG,YAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAA;AACvC,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,MAAM,CAAA;AAEvC,IAAI,CAAC,YAAY,IAAI,CAAC,MAAM,EAAE,CAAC;IAC7B,OAAO,CAAC,KAAK,CAAC,qCAAqC,CAAC,CAAA;AACtD,CAAC;AAED,MAAM,aAAa,GAAG,IAAI,sBAAa,CAAC;IACtC,YAAY;IACZ,MAAM;CACP,CAAC,CAAA;AAEW,QAAA,MAAM,GAAG,IAAI,kBAAS,CAAC,aAAa,CAAC,CAAA","sourcesContent":["import { Configuration, OpenAIApi } from 'openai'\nimport { config } from '@things-factory/env'\n\nconst OPENAI = config.get('openai', {})\nconst { organization, apiKey } = OPENAI\n\nif (!organization || !apiKey) {\n console.error(\"'OPENAI_API_KEY' is not configured.\")\n}\n\nconst configuration = new Configuration({\n organization,\n apiKey\n})\n\nexport const client = new OpenAIApi(configuration)\n"]}
1
+ {"version":3,"file":"openai-connection.js","sourceRoot":"","sources":["../../server/controllers/openai-connection.ts"],"names":[],"mappings":";;;AAAA,mCAAiD;AACjD,6CAA4C;AAE5C,MAAM,MAAM,GAAG,YAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAA;AACvC,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,MAAM,CAAA;AAEvC,IAAI,CAAC,YAAY,IAAI,CAAC,MAAM,EAAE,CAAC;IAC7B,OAAO,CAAC,KAAK,CAAC,qEAAqE,CAAC,CAAA;AACtF,CAAC;AAED,MAAM,aAAa,GAAG,IAAI,sBAAa,CAAC;IACtC,YAAY;IACZ,MAAM;CACP,CAAC,CAAA;AAEW,QAAA,MAAM,GAAG,IAAI,kBAAS,CAAC,aAAa,CAAC,CAAA","sourcesContent":["import { Configuration, OpenAIApi } from 'openai'\nimport { config } from '@things-factory/env'\n\nconst OPENAI = config.get('openai', {})\nconst { organization, apiKey } = OPENAI\n\nif (!organization || !apiKey) {\n console.error(\"[ openai-connection@codelingua ] 'OPENAI_API_KEY' is not configured\")\n}\n\nconst configuration = new Configuration({\n organization,\n apiKey\n})\n\nexport const client = new OpenAIApi(configuration)\n"]}