mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-11 04:16:55 +00:00
fix compile error
This commit is contained in:
1 parent
d9f5e0e78b
commit
bc91785628
2 files changed
+9
-1
No files matched your search
@@ -31,6 +31,9 @@ pub enum GenerateError {
|
||||
model: ModelType,
|
||||
},
|
||||
|
||||
/// If the response didn't contain job tokens to track.
|
||||
ResponseHadNoJobTokens,
|
||||
|
||||
/// There was a billing, credits, or payments issue.
|
||||
BillingIssue(BillingIssueReason),
|
||||
|
||||
@@ -223,6 +226,7 @@ impl From<ArtcraftRouterError> for GenerateError {
|
||||
ArtcraftRouterError::Provider(ProviderError::Storyteller(e)) => {
|
||||
Self::ProviderFailure(ProviderFailureReason::StorytellerError(e))
|
||||
}
|
||||
ArtcraftRouterError::Provider(ProviderError::Fal(_)) => Self::FalNoLongerSupported,
|
||||
}
|
||||
}
|
||||
}
|
||||
+5
-1
@@ -59,11 +59,15 @@ pub(super) async fn handle_artcraft_seedance_2p0(
|
||||
return Err(GenerateError::from(err));
|
||||
}
|
||||
};
|
||||
|
||||
let job_id = response.get_artcraft_payload()
|
||||
.map(|p| p.inference_job_token.to_string())
|
||||
.ok_or(GenerateError::ResponseHadNoJobTokens)?;
|
||||
|
||||
Ok(TaskEnqueueSuccess {
|
||||
task_type: TaskType::VideoGeneration,
|
||||
model: Some(GenerationModel::Seedance2p0),
|
||||
provider: GenerationProvider::Artcraft,
|
||||
provider_job_id: Some(response.inference_job_token.to_string()),
|
||||
provider_job_id: Some(job_id),
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user