Skip to content

chore(providers/openai): re-introduce logprobs as providerMetadata#6049

Merged
samdenty merged 7 commits intov5from
v5-openai-logprobs
Apr 30, 2025
Merged

chore(providers/openai): re-introduce logprobs as providerMetadata#6049
samdenty merged 7 commits intov5from
v5-openai-logprobs

Conversation

@samdenty
Copy link
Copy Markdown
Contributor

@samdenty samdenty commented Apr 29, 2025

Background

In #5896 we removed logprobs to simplify models.

Summary

Re-introduce logprobs as provider-specific functionality for openai.

Verification

Tasks

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • Formatting issues have been fixed (run pnpm prettier-fix in the project root)

Future Work

Related Issues

@lgrammel
Copy link
Copy Markdown
Collaborator

Please add a section to the OpenAI provider docs.

@samdenty samdenty closed this Apr 30, 2025
@samdenty samdenty reopened this Apr 30, 2025
@samdenty samdenty merged commit 136819b into v5 Apr 30, 2025
8 checks passed
@samdenty samdenty deleted the v5-openai-logprobs branch April 30, 2025 17:13
gr2m added a commit that referenced this pull request May 1, 2025
lgrammel pushed a commit that referenced this pull request May 1, 2025
samdenty added a commit that referenced this pull request May 2, 2025
…#6091)

Followup to #6049, we were missing
streaming logprobs it was commented for the completion model but
accidentally missed this one
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.
iteratetograceness pushed a commit to iteratetograceness/ai that referenced this pull request May 9, 2025
iteratetograceness pushed a commit to iteratetograceness/ai that referenced this pull request May 9, 2025
…vercel#6091)

Followup to vercel#6049, we were missing
streaming logprobs it was commented for the completion model but
accidentally missed this one
@gr2m gr2m added ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label 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/openai Issues related to the @ai-sdk/openai provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants