@workglow/ai 0.2.22 → 0.2.24
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/dist/browser.js +15 -3
- package/dist/browser.js.map +7 -7
- package/dist/bun.js +15 -3
- package/dist/bun.js.map +7 -7
- package/dist/job/AiJob.d.ts.map +1 -1
- package/dist/node.js +15 -3
- package/dist/node.js.map +7 -7
- package/dist/task/ModelSearchTask.d.ts +7 -0
- package/dist/task/ModelSearchTask.d.ts.map +1 -1
- package/dist/task/base/AiImageOutputTask.d.ts.map +1 -1
- package/dist/task/base/StreamingAiTask.d.ts.map +1 -1
- package/dist/worker.js.map +3 -3
- package/package.json +11 -11
package/dist/bun.js
CHANGED
|
@@ -1221,7 +1221,11 @@ class StreamingAiTask extends AiTask {
|
|
|
1221
1221
|
for await (const event of strategy.executeStream(jobInput, context, this.runConfig.runnerId)) {
|
|
1222
1222
|
if (!firstDataSeen && (event.type === "text-delta" || event.type === "object-delta" || event.type === "snapshot")) {
|
|
1223
1223
|
firstDataSeen = true;
|
|
1224
|
-
yield {
|
|
1224
|
+
yield {
|
|
1225
|
+
type: "phase",
|
|
1226
|
+
message: streamingLabel,
|
|
1227
|
+
progress: undefined
|
|
1228
|
+
};
|
|
1225
1229
|
}
|
|
1226
1230
|
if (event.type === "text-delta") {
|
|
1227
1231
|
yield { ...event, port: event.port ?? defaultPort };
|
|
@@ -4516,6 +4520,13 @@ var ModelSearchInputSchema = {
|
|
|
4516
4520
|
type: "string",
|
|
4517
4521
|
title: "Query",
|
|
4518
4522
|
description: "Optional search string. When omitted or empty, returns all models (provider-specific listing)."
|
|
4523
|
+
},
|
|
4524
|
+
credential_key: {
|
|
4525
|
+
type: "string",
|
|
4526
|
+
title: "Credential",
|
|
4527
|
+
description: "Optional credential-store key used to list provider models. When omitted, providers may return a curated fallback list.",
|
|
4528
|
+
format: "credential",
|
|
4529
|
+
"x-ui-hidden": true
|
|
4519
4530
|
}
|
|
4520
4531
|
},
|
|
4521
4532
|
required: ["provider"],
|
|
@@ -4539,7 +4550,8 @@ function buildModelSearchInputSchemaDynamic() {
|
|
|
4539
4550
|
type: "object",
|
|
4540
4551
|
properties: {
|
|
4541
4552
|
provider: providerProp,
|
|
4542
|
-
query: ModelSearchInputSchema.properties.query
|
|
4553
|
+
query: ModelSearchInputSchema.properties.query,
|
|
4554
|
+
credential_key: ModelSearchInputSchema.properties.credential_key
|
|
4543
4555
|
},
|
|
4544
4556
|
required: [...ModelSearchInputSchema.required],
|
|
4545
4557
|
additionalProperties: ModelSearchInputSchema.additionalProperties
|
|
@@ -7435,4 +7447,4 @@ export {
|
|
|
7435
7447
|
AiChatInputSchema
|
|
7436
7448
|
};
|
|
7437
7449
|
|
|
7438
|
-
//# debugId=
|
|
7450
|
+
//# debugId=9A35FF50116833CB64756E2164756E21
|