st-comp 0.0.266 → 0.0.267

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/lib/aiTools.js CHANGED
@@ -115,12 +115,12 @@ export const sendToBaiLianAppStreaming = async ({ appId, apiKey, value, callback
115
115
  }
116
116
  };
117
117
  // 工作流: 流式返回
118
- export const sendToBaiLianWorkflowStreaming = async ({ appId, apiKey, value, callback }) => {
118
+ export const sendToBaiLianWorkflowStreaming = async ({ mode, appId, apiKey, token, value, callback }) => {
119
119
  try {
120
120
  const response = await fetch(`https://dashscope.aliyuncs.com/api/v1/apps/${appId}/completion`, {
121
121
  method: "POST",
122
122
  body: JSON.stringify({
123
- input: { prompt: value },
123
+ input: { prompt: value, biz_params: { token, mode, origin: "web" } },
124
124
  parameters: { incremental_output: "true", flow_stream_mode: "message_format_plus" },
125
125
  debug: {},
126
126
  }),
package/lib/bundle.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as m } from "./index-53b3465c.js";
1
+ import { i as m } from "./index-7279dacd.js";
2
2
  import "vue";
3
3
  import "echarts";
4
4
  export {