Closed Rot4tion closed 1 month ago
Ii have the same problem.
Hi @Rot4tion @pcintra11 , please try not specifying sd_version. If you specify the model, no need to specify sd_version.
Same problem here, and I'm not specifying the sdkVersion
@mecsantos
Omitting sd_version
allows createGeneration
request to succeed. However retrieving the image using getGenerationById
fails with the same error as OP. The npm package needs to be updated. When is that expected to happen?
If this takes too long, we're switching to a Flux host.
Hi @peace-furniture , the only input for getting image generation by ID should be just the generation ID.
In terms of an update, it's a holiday in Australia today. We'll flag to engineering this week and will keep you posted on timing.
This was open for a week because we don't monitor issues here. We probably only noticed when it got flagged via support@leonardo.ai.
We are happy to process refunds, just kindly send this thread via our support. We apologize for the trouble and delay in your development.
Thanks @mecsantos for the quick reply. I'm passing in only the task ID to retrieve the image. The Node SDK might be adding more in, but I can't control that. It looks like the issue is that the response contains PHOENIX
which isn't in the library's enum list, throwing an exception.
const progressResult = await leoClient.image.getGenerationById(taskId as string);
Hey @peace-furniture, @Rot4tion and @pcintra11, I will be publishing a fix to add the missing type soon.
@Rot4tion, @pcintra11, @dankiCodeBusiness and @peace-furniture please find @silvamarcel's changes in version 4.18.1
.
Thank you @ronvoluted @silvamarcel for publishing the update. It works great!
Works now! Tks!
Closing the issue for now, if anything comes up, please reach out to us.
@leonardo-ai/sdk 4.16.0
req:
res:
sd_version don't have PHOENIX option Tried:
await this.leonardo.image.getGenerationById(payload.id);
error