feat: add live 3d task console
This commit is contained in:
1 parent
18a55346c6
commit
6dcc1504e2
6 files changed
+199
-15
No files matched your search
@@ -150,8 +150,16 @@ async function route(request: IncomingMessage, response: ServerResponse) {
|
||||
...(body.smartLowPoly !== undefined ? { smart_low_poly: booleanValue(body.smartLowPoly, 'smartLowPoly') } : {}),
|
||||
})
|
||||
tripoTaskOwners.set(taskId, { userId: keyRecord.userId, model: model.id })
|
||||
const task = await tripo.getTask(taskId)
|
||||
send(response, 202, { task: { ...task, model: model.id } })
|
||||
send(response, 202, {
|
||||
task: {
|
||||
id: taskId,
|
||||
provider: 'tripo',
|
||||
model: model.id,
|
||||
status: 'queued',
|
||||
progress: 0,
|
||||
createdAt: new Date().toISOString(),
|
||||
},
|
||||
})
|
||||
return
|
||||
}
|
||||
const now = new Date().toISOString()
|
||||
|
||||
Reference in new issue
Block a user