genai-impact / ecologits

🌱 EcoLogits tracks the energy consumption and environmental footprint of using generative AI models through APIs.
https://ecologits.ai/
Mozilla Public License 2.0
62 stars 8 forks source link

Implement warnings #59

Open samuelrince opened 2 months ago

samuelrince commented 2 months ago

Description

Display warnings in the impacts section of each response when needed. These warnings can inform the user on the quality of the estimation for closed-source models, for instance.

Solution

Some warnings are already defined in the models.csv file.

adrienbanse commented 2 weeks ago

@samuelrince As an attribute of Impacts? We could also simply use logger.warning, or both

samuelrince commented 2 weeks ago

As an attribute of Impacts, because logging it would also be very spammy. I'd like to finish the new structure of model repository before adding the feature though ;)

logging.warning must be used to notify that the user must do an action. For example, if we deprecate mistral v0 for v1 we need to warn users before that the package version will no longer be supported in EcoLogits v0.x