You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently tokencost can not get imported lazily inside an async application properly because it tries to run its own eventloop for updating the cost data.
I think that it should either:
check for an existing eventloop and use that one if existing
or, better
allow an option to not update at all on import (perhaps via environment variable? That would allow to keep bw compat)
I think in general doing IO work on an import is not really ideal, would love if that could be reconsidered.