Closed mikr closed 2 years ago
I had this same issue in the standard python implementation. Wrapping the seed value in a list did the trick there, too (after hours of googling and neglecting to look here first).
current version of the client takes care of this for you
Specifying the seed value does not work at the moment and results in an exception inside protobuf:
As protobuf always expects an interable (there is a long standing TODO item at the crash site) this can be trivially fixed by adding an else case at https://github.com/Stability-AI/stability-sdk/blob/main/src/stability_sdk/client.py#L213 that wraps the seed value in a list.
Because even the latest version of protobuf does not support this union handling properly, the line at https://github.com/Stability-AI/stability-sdk/blob/main/src/stability_sdk/client.py#L185 could be simplified to: