@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/bun.js
CHANGED
|
@@ -591,7 +591,7 @@ class AiTask extends JobQueueTask {
|
|
|
591
591
|
static type = "AiTask";
|
|
592
592
|
constructor(input = {}, config = {}) {
|
|
593
593
|
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;
|
|
594
|
-
config.
|
|
594
|
+
config.title ||= `${new.target.type || new.target.name}${modelLabel ? " with model " + modelLabel : ""}`;
|
|
595
595
|
super(input, config);
|
|
596
596
|
}
|
|
597
597
|
async getJobInput(input) {
|
|
@@ -614,7 +614,7 @@ class AiTask extends JobQueueTask {
|
|
|
614
614
|
}
|
|
615
615
|
const job = new AiJob({
|
|
616
616
|
queueName: resolvedQueueName,
|
|
617
|
-
jobRunId: this.
|
|
617
|
+
jobRunId: this.runConfig.runnerId,
|
|
618
618
|
input: jobInput
|
|
619
619
|
});
|
|
620
620
|
return job;
|
|
@@ -2001,7 +2001,7 @@ class StreamingAiTask extends AiTask {
|
|
|
2001
2001
|
const queueName = await this.getDefaultQueueName(input);
|
|
2002
2002
|
const job = new AiJob({
|
|
2003
2003
|
queueName: queueName ?? this.type,
|
|
2004
|
-
jobRunId: this.
|
|
2004
|
+
jobRunId: this.runConfig.runnerId,
|
|
2005
2005
|
input: jobInput
|
|
2006
2006
|
});
|
|
2007
2007
|
const ports = getStreamingPorts(this.outputSchema());
|
|
@@ -5991,4 +5991,4 @@ export {
|
|
|
5991
5991
|
AiJob
|
|
5992
5992
|
};
|
|
5993
5993
|
|
|
5994
|
-
//# debugId=
|
|
5994
|
+
//# debugId=8EB68A2DA4788C9664756E2164756E21
|