标注模型下载的重复 task 查询
Project CI / AI game creator shell Rust shard 2/4 (pull_request) Successful in 7m17s
Project CI / AI game creator shell Rust shard 3/4 (pull_request) Successful in 7m19s
Project CI / AI game creator shell Rust shard 4/4 (pull_request) Successful in 7m31s
Project CI / AI game creator shell Rust shard 1/4 (pull_request) Successful in 7m39s
Project CI / Backend tests (pull_request) Failing after 10s
Project CI / AI game creator shell Rust smoke (pull_request) Successful in 2m3s
Project CI / Repository checks (pull_request) Failing after 10s
Project CI / AI game creator shell Rust crates (pull_request) Successful in 2m36s
Project CI / Native shell tests (pull_request) Failing after 11m43s
Project CI / AI game creator shell web tests (pull_request) Failing after 10m21s
Project CI / Frontend tests (pull_request) Successful in 12m23s

在 download_model 增加 TODO,说明 SDK 只提供 download_model(&Task) 因而必须再取一次 task

若将来 SDK 支持按 URL 下载,可直接使用 snapshot 中的模型 URL 省掉这次请求
This commit is contained in:
2026-09-19 14:17:31 +08:00
parent 3c1059aa39
commit 0c4b1c34d9
@@ -35,6 +35,8 @@ impl TripoProviderClient {
) -> Result<TripoDownloadedModel, TripoError> {
let handle = &task.handle;
validate_task_id(&handle.task_id)?;
// TODO SDK 只公开 download_model(&Task),必须按 handle 再取一次 task;若将来支持按 URL 下载,
// 可直接使用 snapshot.output 里的模型 URL,省掉这次请求。
let sdk_task = self
.client
.get_task(&handle.task_id)