@workglow/ai 0.0.100 → 0.0.102

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 CHANGED
@@ -590,7 +590,7 @@ class AiTask extends JobQueueTask {
590
590
  static type = "AiTask";
591
591
  constructor(input = {}, config = {}) {
592
592
  const modelLabel = typeof input.model === "string" ? input.model : typeof input.model === "object" && input.model ? input.model.model_id || input.model.title || input.model.provider : undefined;
593
- config.name ||= `${new.target.type || new.target.name}${modelLabel ? " with model " + modelLabel : ""}`;
593
+ config.title ||= `${new.target.type || new.target.name}${modelLabel ? " with model " + modelLabel : ""}`;
594
594
  super(input, config);
595
595
  }
596
596
  async getJobInput(input) {
@@ -613,7 +613,7 @@ class AiTask extends JobQueueTask {
613
613
  }
614
614
  const job = new AiJob({
615
615
  queueName: resolvedQueueName,
616
- jobRunId: this.config.runnerId,
616
+ jobRunId: this.runConfig.runnerId,
617
617
  input: jobInput
618
618
  });
619
619
  return job;
@@ -2000,7 +2000,7 @@ class StreamingAiTask extends AiTask {
2000
2000
  const queueName = await this.getDefaultQueueName(input);
2001
2001
  const job = new AiJob({
2002
2002
  queueName: queueName ?? this.type,
2003
- jobRunId: this.config.runnerId,
2003
+ jobRunId: this.runConfig.runnerId,
2004
2004
  input: jobInput
2005
2005
  });
2006
2006
  const ports = getStreamingPorts(this.outputSchema());
@@ -5990,4 +5990,4 @@ export {
5990
5990
  AiJob
5991
5991
  };
5992
5992
 
5993
- //# debugId=27B14E49C5DECD7164756E2164756E21
5993
+ //# debugId=BFF9ED5A0AB1522164756E2164756E21