@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/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 { type: "phase", message: streamingLabel, progress: undefined };
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=E1B65A06F81AD80964756E2164756E21
7450
+ //# debugId=9A35FF50116833CB64756E2164756E21