Skip to content

Include sampled OpenRouter label logprob - #18

Merged
NotXf1le merged 1 commit into
masterfrom
feature/openrouter-sampled-logprob
Sep 23, 2026
Merged

NotXf1le merged 1 commit into
masterfrom
feature/openrouter-sampled-logprob

Conversation

@NotXf1le

Copy link
Copy Markdown
Owner

What changed

  • Include the sampled token's logprob when its choice label is absent from top_logprobs.
  • Reject conflicting logprobs when the label appears in both places.
  • Add tests for the missing-label and conflicting-value cases.

Why

OpenRouter returns the sampled token's logprob separately. A choice label with an available score should not receive zero probability because it is missing from the top list.

Checks

  • npm run check
  • npm pack --dry-run

@NotXf1le
NotXf1le merged commit b961d93 into master Sep 23, 2026
6 checks passed
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