Title: Keep Jev answer confidence for OpenRouter evaluation models in Vercel AI · Issue #24860 · getsentry/sentry-javascript · GitHub
Open Graph Title: Keep Jev answer confidence for OpenRouter evaluation models in Vercel AI · Issue #24860 · getsentry/sentry-javascript
X Title: Keep Jev answer confidence for OpenRouter evaluation models in Vercel AI · Issue #24860 · getsentry/sentry-javascript
Description: Vercel AI experimental_evaluate with openrouter.evaluationModel('typesafe/jev-1.13') (@openrouter/ai-sdk-provider 3.1.0) gives an evaluate span, but the answers in gen_ai.output.messages lose confidence and legend. The OpenRouter provide...
Open Graph Description: Vercel AI experimental_evaluate with openrouter.evaluationModel('typesafe/jev-1.13') (@openrouter/ai-sdk-provider 3.1.0) gives an evaluate span, but the answers in gen_ai.output.messages lose confi...
X Description: Vercel AI experimental_evaluate with openrouter.evaluationModel('typesafe/jev-1.13') (@openrouter/ai-sdk-provider 3.1.0) gives an evaluate span, but the answers in gen_ai.output.messages lo...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/24860
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Keep Jev answer confidence for OpenRouter evaluation models in Vercel AI","articleBody":"Vercel AI `experimental_evaluate` with `openrouter.evaluationModel('typesafe/jev-1.13')` (`@openrouter/ai-sdk-provider` 3.1.0) gives an evaluate span, but the answers in `gen_ai.output.messages` lose `confidence` and `legend`.\n\nThe OpenRouter provider moves these fields into `providerMetadata.openrouter.answers[\u003cquestion id>]` (`{ confidence, legend }`). Our `withProviderConfidence` in `packages/server-utils/src/integrations/vercel-ai/vercel-ai-dc-subscriber.ts` only reads `providerMetadata.typesafe.confidence`, which is the shape of `@ai-sdk/typesafe-ai`.\n\n## Expected\n\nEvaluate answers from the OpenRouter provider keep `confidence` (choice, score) and `legend` (score), the same as answers from `@ai-sdk/typesafe-ai`.\n\n## Notes\n\n* OpenRouter also sends `providerMetadata.openrouter.usage.cost` and `provider`. We could record these too, but they are optional.\n* Related: Vercel AI `experimental_evaluate` (getsentry/sentry-javascript#24694).","author":{"url":"https://github.com/andreiborza","@type":"Person","name":"andreiborza"},"datePublished":"2026-09-30T06:57:12Z","url":"https://github.com/getsentry/sentry-javascript/issues/24860"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:16131a06-05db-9e5f-8520-694f6aea4179 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9692:2FFC62:C6E234:115371D:6B0437F0 |
| html-safe-nonce | 95ec3e63523d564c6777a80daa56565e64b7a2d64f6fbfb15db8f40eca35d03d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjkyOjJGRkM2MjpDNkUyMzQ6MTE1MzcxRDo2QjA0MzdGMCIsInZpc2l0b3JfaWQiOiI2NDQ5MjczNjY4ODQ4ODU5MTIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 809d08f229f758a951ac43768cb879b5f13dc385c0a6cd13242a0d7cce0b7112 |
| hovercard-subject-tag | issue:5642379129 |
| github-keyboard-shortcuts | repository,issues,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/issues/show/getsentry/sentry-javascript/24860/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c825f49e6a5cd813cf227caecf9b132c594febdbb635b1664a31dd0f6fe1836b/getsentry/sentry-javascript/issues/24860 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c825f49e6a5cd813cf227caecf9b132c594febdbb635b1664a31dd0f6fe1836b/getsentry/sentry-javascript/issues/24860 |
| og:image:alt | Vercel AI experimental_evaluate with openrouter.evaluationModel('typesafe/jev-1.13') (@openrouter/ai-sdk-provider 3.1.0) gives an evaluate span, but the answers in gen_ai.output.messages lose confi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andreiborza |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| 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 | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width