@xuda.io/ai_module 1.1.5628 → 1.1.5630

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.
package/index.mjs CHANGED
@@ -195,7 +195,7 @@ const get_openai_codex_exec_args = function (codex_model, opts = {}) {
195
195
  return args;
196
196
  };
197
197
 
198
- global._conf = JSON.parse(fs.readFileSync(path.join(process.env.XUDA_HOME, process.env.XUDA_CONFIG), 'utf8'));
198
+ global._conf = (await import(path.join(process.env.XUDA_HOME, "common", "load_conf.mjs"))).loadConf();
199
199
 
200
200
  const _defaultAppConfig = {
201
201
  credential: admin.credential.cert(_conf.firebase_serviceAccount),