Skip to content

chore: remove logprobs#5896

Merged
lgrammel merged 6 commits intov5from
lg/U0Gu2leX
Apr 22, 2025
Merged

chore: remove logprobs#5896
lgrammel merged 6 commits intov5from
lg/U0Gu2leX

Conversation

@lgrammel
Copy link
Copy Markdown
Collaborator

@lgrammel lgrammel commented Apr 22, 2025

Background

Only select providers support logprobs, and they do in different ways. It is a edge usecase that can be moved into provider metadata to simplify the specification.

Summary

Remove logprobs feature.

Future work

Re-implement OpenAI logprobs using provider options and metadata. Add Google logprobs.

@lgrammel lgrammel changed the title 1 chore: remove logprobs Apr 22, 2025
@lgrammel lgrammel marked this pull request as ready for review April 22, 2025 15:42
@lgrammel lgrammel merged commit e86be6f into v5 Apr 22, 2025
7 checks passed
@lgrammel lgrammel deleted the lg/U0Gu2leX branch April 22, 2025 15:56
samdenty pushed a commit that referenced this pull request Apr 24, 2025
…ining2

* origin/v5: (25 commits)
  chore(providers/langchain): extract to separate package (#5928)
  Version Packages (canary) (#5898)
  fix (docs): fix typo (#5914) (#5919)
  docs: update chat-with-pdf page to include updated provider information (#5895) (#5917)
  docs: Added documentation for function call parsing middleware (#5900)
  refactoring: extract SharedV2Headers (#5912)
  feat (providers/openai): add support for reasoning summaries (#5906) (#5909)
  fix (docs): fix OpenRouter code examples (#5876) (#5893)
  fix(providers/xai): return actual usage when streaming instead of NaN (#5873) (#5891)
  fix (docs): fix valibotSchema import (#5865) (#5889)
  fix (providers/fal): improve model compatibility (#5855) (#5892)
  chore: extract spec types (#5901)
  chore: remove logprobs (#5896)
  Version Packages (canary) (#5872)
  chore (ci): unify jobs & remove unnecessary example builds (#5894)
  feat (ai): allow using provider default temperature by specifying null (#5890)
  fix(ai/mcp-stdio): make `createChildProcess` synchronous to prevent spawn race condition (#5852) (#5888)
  feat (providers/google): add thinking config to provider options (#5842) (#5887)
  fix (examples): avoid mixed message types in `use-chat-streamdata-multistep` (#5824) (#5886)
  chore: restructure language model supported urls (#5882)
  ...
samdenty added a commit that referenced this pull request Apr 30, 2025
…6049)

## Background

In #5896 we removed logprobs to
simplify models.

## Summary

Re-introduce logprobs as provider-specific functionality for openai.
iteratetograceness pushed a commit to iteratetograceness/ai that referenced this pull request May 9, 2025
…ercel#6049)

## Background

In vercel#5896 we removed logprobs to
simplify models.

## Summary

Re-introduce logprobs as provider-specific functionality for openai.
@gr2m gr2m added ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label provider/azure Issues related to the @ai-sdk/azure provider provider/openai Issues related to the @ai-sdk/openai provider labels Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label provider/azure Issues related to the @ai-sdk/azure provider provider/openai Issues related to the @ai-sdk/openai provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants