Title: fix(langchain): avoid double-counting cached input tokens by AbhiPrasad · Pull Request #445 · braintrustdata/braintrust-sdk-python · GitHub
Open Graph Title: fix(langchain): avoid double-counting cached input tokens by AbhiPrasad · Pull Request #445 · braintrustdata/braintrust-sdk-python
X Title: fix(langchain): avoid double-counting cached input tokens by AbhiPrasad · Pull Request #445 · braintrustdata/braintrust-sdk-python
Description: Python Tracing & Evals library for Braintrust. Contribute to braintrustdata/braintrust-sdk-python development by creating an account on GitHub.
Open Graph Description: Only fold cache tokens into prompt and total metrics when LangChain reports cache tokens separately from input tokens. This preserves Anthropic-style cache normalization while avoiding double-count...
X Description: Only fold cache tokens into prompt and total metrics when LangChain reports cache tokens separately from input tokens. This preserves Anthropic-style cache normalization while avoiding double-count...
Opengraph URL: https://github.com/braintrustdata/braintrust-sdk-python/pull/445
X: @github
Domain: github.com
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:ed55d32a-8861-7ad7-49eb-aa003f47379f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C276:5CED0:AFA2BA:ED0352:6A4D440F |
| html-safe-nonce | 13a399ab984d97a72a9d38cbef73eb426e5c1a1471abd7fb4d7f8f3fdcf6c064 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjc2OjVDRUQwOkFGQTJCQTpFRDAzNTI6NkE0RDQ0MEYiLCJ2aXNpdG9yX2lkIjoiMzc2ODc1OTA2NzI5NzUzMDg5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3b9eedfab496deea632f2b786dd88345dd53c77829ac239e7c5ef2a35209558c |
| hovercard-subject-tag | pull_request:3710614119 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/braintrustdata/braintrust-sdk-python/445/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/890ff3bb6c27ee6a5cf152a95b50f3854cfec34b1ffbac72ddd1f144f68f1eaa/braintrustdata/braintrust-sdk-python/pull/445 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/890ff3bb6c27ee6a5cf152a95b50f3854cfec34b1ffbac72ddd1f144f68f1eaa/braintrustdata/braintrust-sdk-python/pull/445 |
| og:image:alt | Only fold cache tokens into prompt and total metrics when LangChain reports cache tokens separately from input tokens. This preserves Anthropic-style cache normalization while avoiding double-count... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AbhiPrasad |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-cache |
| go-import | github.com/braintrustdata/braintrust-sdk-python git https://github.com/braintrustdata/braintrust-sdk-python.git |
| octolytics-dimension-user_id | 128932779 |
| octolytics-dimension-user_login | braintrustdata |
| octolytics-dimension-repository_id | 1162746274 |
| octolytics-dimension-repository_nwo | braintrustdata/braintrust-sdk-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1162746274 |
| octolytics-dimension-repository_network_root_nwo | braintrustdata/braintrust-sdk-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width