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