@workglow/ai 0.0.100 → 0.0.101
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 +4 -4
- package/dist/browser.js.map +4 -4
- package/dist/bun.js +4 -4
- package/dist/bun.js.map +4 -4
- package/dist/node.js +4 -4
- package/dist/node.js.map +4 -4
- package/package.json +11 -11
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.
|
|
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.
|
|
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.
|
|
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=
|
|
5993
|
+
//# debugId=BFF9ED5A0AB1522164756E2164756E21
|