Skip to content

Add expert mode with custom values - #18

Open
eguegain wants to merge 3 commits into
mlco2:mainfrom
eguegain:feat/api/expert-mode
Open

Add expert mode with custom values#18
eguegain wants to merge 3 commits into
mlco2:mainfrom
eguegain:feat/api/expert-mode

Conversation

@eguegain

Copy link
Copy Markdown

Adds a new route for direct model invocation with user defined metrics (rather than fixed provider/model/datacenter metrics)
Bypasses the requirements for a specific provider/model, and thus allows the model to be used for custom deployments or non-supported models.
User must bring their own electricity-mix impacts, data center properties, and model properties.
Implemented as a direct call to compute_llm_impacts, in the same way that ecologits-calculator directly calls compute_llm_impacts in expert mode

Changes:

Add a route for direct model invocation
Add test

Limits:

No support for ValueOrRange as API input

Possible evolution:

add support for the optional model metrics (quantization/batch size/embodied impacts...) but the endpoint will get heavy

eguegain added 3 commits July 17, 2026 15:00
Added a new endpoint for estimating environmental impacts of LLM requests with detailed input parameters.
Added a test for the POST /expert-estimations endpoint to validate the response against expected impacts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant