sd-api icon indicating copy to clipboard operation
sd-api copied to clipboard

The bug of the function "setModel" in distribution package v0.0.7

Open LancerComet opened this issue 2 years ago • 2 comments

Thank you for your great work!

I've noticed that the version on npm is 0.0.7, but the repository version is 0.0.6. However, the 0.0.6 version on npm didn't come with the code files, so 0.0.7 should be a remedial version made using the code from 0.0.6.

But strangely, there's an issue with a line of code in setModel, which should be:

https://github.com/jaschahuisman/sd-api/blob/main/src/lib/StableDiffusionApi.ts#L520

However this is what it looks like in 0.0.7:

image

The code in 0.0.7 is incorrect, causing the setModel function to always fail.

LancerComet avatar Jan 26 '24 08:01 LancerComet

I have published a package to the npm, someone who has encountered into this problem can use this package to solve the issue temporarily.

LancerComet avatar Jan 29 '24 09:01 LancerComet

still not fix,please update npm package,thanks

eonhou avatar Jul 26 '24 03:07 eonhou