This repository is a port of the genai-impact/ecologits methodology to JavaScript.
🌱 EcoLogits tracks the energy consumption and environmental impacts of using generative AI models through APIs.
Installation depends on the model providers that you use in your code:
- Core calculator functions :
ecologits.js
- Mistral adapter :
ecologits-mistral
- OpenAI adapter :
ecologits-openai