Skip to content

PAL-866-collect-metrics#1230

Closed
pratacosmin wants to merge 1 commit intomainfrom
PAL-866-collect-metrics
Closed

PAL-866-collect-metrics#1230
pratacosmin wants to merge 1 commit intomainfrom
PAL-866-collect-metrics

Conversation

@pratacosmin
Copy link
Collaborator

Description

Add a new argument, task_id, to the ModelConfig to enable sending it as a tag to the LiteLLM proxy, allowing us to track the cost of each run/request.

Type of change

  • New feature (non-breaking change which adds functionality)

Usage

We can add to the model object a task_id that can be use to track request for a specific run

                harness = Harness(
                    model={
                        "model": self.model_id,
                        "type": self.model_type.lower(),
                        "hub": self.normalize_provider(self.sdk_provider.lower()),
                        "task_id": self.task_id,
                    },
                    **self.update_model_parameters(config),
                )

@pratacosmin pratacosmin force-pushed the PAL-866-collect-metrics branch from 00fde4b to ad3fd4f Compare February 18, 2026 11:53
@pratacosmin pratacosmin deleted the PAL-866-collect-metrics branch February 19, 2026 11:33
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