Threading error in the nostr code? Or in the AI API code?
If the first, I can recommend this nostr library : https://github.com/rust-nostr/nostr/ . I've been using it for a while in multi-threaded apps, never had a problem.
I have nostr:npub17xwygpls3lp7nv540u5syuhkmrpwhtjc23cy5ql4jqrhnw925ejqccncvd which supports dalle2, stable diffusion and a mj like model (not the original one). Problem is it always crashes after a few hours due to a threading error I couldn't yet figure out
Threading error in the nostr code? Or in the AI API code?
If the first, I can recommend this nostr library : https://github.com/rust-nostr/nostr/ . I've been using it for a while in multi-threaded apps, never had a problem.
Yeah in Nostr code, I use python-nostr but don't know if it's a bug on my side (probably) or in the lib. Need to figure out the python bindings, looks much more mature and stable
python-nostr looks more or less abandoned, last commit was in Feb.
People offering to co-maintain it, but no response yet: https://github.com/jeffthibault/python-nostr/issues/103
Maybe check out other python libs, like https://github.com/monty888/monstr
Oh yeah
Thx for the hint, monstr looks promising