@xuda.io/ai_module 1.1.5328 → 1.1.5329

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 +4 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4837,7 +4837,8 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4837
4837
  stream,
4838
4838
  };
4839
4839
 
4840
- await update_job('submitting chat');
4840
+ // await update_job('submitting chat');
4841
+ emitToDashboard('stream_phase', 'Submitting chat');
4841
4842
  init_agent_hooks(_agent);
4842
4843
  // const output = await runner.run(_agent, prompt, opt);
4843
4844
  const output = await run_agent(_agent, prompt, opt);
@@ -4941,7 +4942,8 @@ const ai_chat_conversation = async function (req, job_id, headers) {
4941
4942
  if (!response_start) {
4942
4943
  response_start = true;
4943
4944
 
4944
- await update_job('streaming results');
4945
+ // await update_job('streaming results');
4946
+ emitToDashboard('stream_phase', 'Streaming results');
4945
4947
  emitToDashboard('response_start');
4946
4948
  }
4947
4949
  const text = chunk.toString();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.5328",
3
+ "version": "1.1.5329",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",