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
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.
Discussion
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