Skip to content

Commit 5ff50b9

Browse files
committed
Fix ci
1 parent 6c954e3 commit 5ff50b9

3 files changed

Lines changed: 7 additions & 22 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"braintrust": patch
3+
---
4+
5+
fix(openrouter): avoid double-counting callModel token and cost metrics

e2e/scenarios/openrouter-instrumentation/__snapshots__/openrouter-v0123.span-events.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -282,17 +282,7 @@
282282
"model": "gemini-2.5-flash-lite",
283283
"provider": "google"
284284
},
285-
"metric_keys": [
286-
"completion_reasoning_tokens",
287-
"completion_tokens",
288-
"cost",
289-
"cost_upstream_inference_cost",
290-
"cost_upstream_inference_input_cost",
291-
"cost_upstream_inference_output_cost",
292-
"prompt_cached_tokens",
293-
"prompt_tokens",
294-
"tokens"
295-
],
285+
"metric_keys": [],
296286
"name": "openrouter.callModel",
297287
"root_span_id": "<span:1>",
298288
"span_id": "<span:15>",

e2e/scenarios/openrouter-instrumentation/__snapshots__/openrouter-v0911.span-events.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -238,17 +238,7 @@
238238
"model": "gemini-2.5-flash-lite",
239239
"provider": "google"
240240
},
241-
"metric_keys": [
242-
"completion_reasoning_tokens",
243-
"completion_tokens",
244-
"cost",
245-
"cost_upstream_inference_cost",
246-
"cost_upstream_inference_input_cost",
247-
"cost_upstream_inference_output_cost",
248-
"prompt_cached_tokens",
249-
"prompt_tokens",
250-
"tokens"
251-
],
241+
"metric_keys": [],
252242
"name": "openrouter.callModel",
253243
"root_span_id": "<span:1>",
254244
"span_id": "<span:13>",

0 commit comments

Comments
 (0)