@xuda.io/ai_module 1.1.5196 → 1.1.5198

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.
Files changed (3) hide show
  1. package/index.mjs +3 -0
  2. package/old.mjs +1 -1
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3076,6 +3076,9 @@ const get_drive_file_response = async function (drive_type, app_id, uid, file_pa
3076
3076
  const doc = check_existing_file_ret.duplicates[0];
3077
3077
  const _region = process.env.XUDA_HOSTNAME; // "eu.xuda.io"; //
3078
3078
  let file_location = doc?.bucket?.[_region]?.Location;
3079
+ if (!file_location) {
3080
+ file_location = doc?.bucket?.[process.env.XUDA_HOSTNAME_ALT]?.Location;
3081
+ }
3079
3082
 
3080
3083
  try {
3081
3084
  // const res = await fetch(file_location);
package/old.mjs CHANGED
@@ -485,7 +485,7 @@ setTimeout(async () => {
485
485
  // ret = await transcribe('/B.mp4');
486
486
  // ret = await upload_file_to_openai_storage('/AAA.mp3');
487
487
  // ret = await create_image("'Generate an image of gray tabby cat hugging an otter with an orange scarf'");
488
- // ret = await submit_chat_conversation({ uid, prompt: 'use xuda.io agent to require info about xuda.io', ai_agents: [] });
488
+ // ret = await submit_chat_conversation({ uid, prompt: 'use xuda.ai agent to require info about xuda.ai', ai_agents: [] });
489
489
  // ret = await submit_chat_conversation({ prompt: 'what is my name', conversation_id: ret.data.conversation_doc._id });
490
490
  // const ret = await create_studio_app('crm');
491
491
  // ret = await submit_chat_gpt_prompt({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5196",
3
+ "version": "1.1.5198",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",