feat: async task pipeline for media and llm workflows
这个提交包含在:
@@ -4,6 +4,7 @@
|
||||
import { mkdir, readFile, writeFile } from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import { ENV } from './_core/env';
|
||||
import { toPublicUrl } from "./publicUrl";
|
||||
|
||||
type StorageConfig = { baseUrl: string; apiKey: string };
|
||||
|
||||
@@ -141,3 +142,7 @@ export async function storageGet(relKey: string): Promise<{ key: string; url: st
|
||||
url: await buildDownloadUrl(baseUrl, key, apiKey),
|
||||
};
|
||||
}
|
||||
|
||||
export function toExternalAssetUrl(pathOrUrl: string) {
|
||||
return toPublicUrl(pathOrUrl);
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户