@xuda.io/ai_module 1.1.5176 → 1.1.5178

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 (2) hide show
  1. package/index.mjs +2 -3
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3429,7 +3429,7 @@ export const delete_prompt_attachment = async function (req, job_id, headers, fi
3429
3429
  };
3430
3430
 
3431
3431
  export const submit_chat_gpt_prompt = async function (req) {
3432
- const { model = _conf.default_ai_model, prompt, response_format, uid, metadata = {}, account_profile_info, tools = [], conversation_id, response_id } = req; //'gpt-5-mini
3432
+ const { model = _conf.default_ai_model, prompt = '', response_format, uid, metadata = {}, account_profile_info, tools = [], conversation_id, response_id } = req; //'gpt-5-mini
3433
3433
 
3434
3434
  let formattedParams;
3435
3435
  if (response_format) {
@@ -3443,7 +3443,6 @@ export const submit_chat_gpt_prompt = async function (req) {
3443
3443
  model,
3444
3444
  input: prompt,
3445
3445
  tools,
3446
-
3447
3446
  text: {
3448
3447
  format: formattedParams,
3449
3448
  },
@@ -3454,7 +3453,7 @@ export const submit_chat_gpt_prompt = async function (req) {
3454
3453
  if (response_id) {
3455
3454
  opt.previous_response_id = response_id;
3456
3455
  }
3457
- response = await client.responses.create(ot);
3456
+ response = await client.responses.create(opt);
3458
3457
  report_ai_status(model);
3459
3458
  } catch (err) {
3460
3459
  report_ai_status(model, err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5176",
3
+ "version": "1.1.5178",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",