feat: update stable diffusion api version

This commit is contained in:
RockYang
2023-11-08 14:54:10 +08:00
parent d0b8d666e4
commit ee8dd41605
4 changed files with 34 additions and 62 deletions

View File

@@ -148,11 +148,11 @@ func IntValue(str string, defaultValue int) int {
}
func ForceCovert(src any, dst interface{}) error {
bytes, err := json.Marshal(src)
b, err := json.Marshal(src)
if err != nil {
return err
}
err = json.Unmarshal(bytes, dst)
err = json.Unmarshal(b, dst)
if err != nil {
return err
}