[Question]: maybe `reset_to_defaults()` do not call `fetch_pricing_info()`
CherishCai opened this issue · comments
In the OpenlitConfig, should reset_to_defaults()
change cls.pricing_info = fetch_pricing_info()
to cls.pricing_info = {}
?
It seems that update_config()
will still be called fetch_pricing_info()
again.
Hey @CherishCai
fetch_pricing_info()
would still be called once and if empty it would return {}. We could reset_to_defaults() but that technically what fetch_pricing_info()
covers considering its returns {} if the pricing cant be found
@patcher9 Thanks for your reply.
It seem to be twice HTTP remote calls now, so look forward to reducing one.
Do you wanna prepare a PR for you idea?
Oh, it's an honor to be a contributor when I get to know openlit
better.