@xuda.io/ai_module 1.1.4515 → 1.1.4516

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 +1 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4121,7 +4121,7 @@ export const create_conversation = async function (req, job_id, headers) {
4121
4121
  let conversation_doc = {
4122
4122
  _id: conversation_obj.id,
4123
4123
  docType: 'chat_conversation',
4124
- title: conversation_type !== 'email' ? getFirstTenWords(prompt) : prompt,
4124
+ title: conversation_type !== 'email' ? getFirstNWords(prompt, 10) : prompt,
4125
4125
  date_created_ts: t,
4126
4126
  ts: t,
4127
4127
  stat: !conversation_type || conversation_type === 'ai' ? 1 : 3,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4515",
3
+ "version": "1.1.4516",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",