Conversation
7d13e90 to
2299a25
Compare
2299a25 to
2576b66
Compare
2576b66 to
c1c111d
Compare
c1c111d to
33c047b
Compare
33c047b to
f4f13ac
Compare
f4f13ac to
5d3e5a5
Compare
5d3e5a5 to
7f20d74
Compare
7f20d74 to
50027dd
Compare
lgrammel
approved these changes
May 2, 2025
50027dd to
8f07680
Compare
samdenty
added a commit
that referenced
this pull request
May 2, 2025
* origin/v5: fix(providers/openai): logprobs for stream alongside completion model (#6091) chore (ai): move maxSteps into UseChatOptions (#6113) docs (ai): add notes on schema .optional() (#6111) chore: update references to use ai-sdk.dev (#6076) (#6107) Version Packages (canary) (#6069) chore (provider-utils): rename TestServerCall.requestBody to requestBodyJson (#6106) chore (ai): rename CoreMessage to ModelMessage (#6105) feat (ai): add filename to file ui parts (#6104) feat (docs): add Dify community provider (#4084) (#6067) (#6103) feat (docs): add Sarvam community provider (#6079) (#6096) fix(providers/openai): zod parse error with function (#6074) (#6095) feat(docs): add Weave observability provider (#6029) (#6094) core (ai/mcp): update experimental MCP client documentation for Streamable HTTP transport usage (#5972) (#6093) fix (docs): update formatting in useChat reference docs (#6100) chore (ai): replace useChat attachments with file ui parts (#6071) feat (ui/react): support resuming an ongoing stream (#6053) test (openai): update snapshot (#6086)
samdenty
added a commit
that referenced
this pull request
May 2, 2025
…call * origin/v5: (43 commits) chore (provider-utils): return IdGenerator interface (#6118) chore (provider): improve jsdoc comments (#6117) chore (ai): remove outdated typecasts (#6116) chore (ai): remove useChat keepLastMessageOnError (#6114) fix(providers/openai): logprobs for stream alongside completion model (#6091) chore (ai): move maxSteps into UseChatOptions (#6113) docs (ai): add notes on schema .optional() (#6111) chore: update references to use ai-sdk.dev (#6076) (#6107) Version Packages (canary) (#6069) chore (provider-utils): rename TestServerCall.requestBody to requestBodyJson (#6106) chore (ai): rename CoreMessage to ModelMessage (#6105) feat (ai): add filename to file ui parts (#6104) feat (docs): add Dify community provider (#4084) (#6067) (#6103) feat (docs): add Sarvam community provider (#6079) (#6096) fix(providers/openai): zod parse error with function (#6074) (#6095) feat(docs): add Weave observability provider (#6029) (#6094) core (ai/mcp): update experimental MCP client documentation for Streamable HTTP transport usage (#5972) (#6093) fix (docs): update formatting in useChat reference docs (#6100) chore (ai): replace useChat attachments with file ui parts (#6071) feat (ui/react): support resuming an ongoing stream (#6053) ...
samdenty
added a commit
that referenced
this pull request
May 5, 2025
* origin/v5: (23 commits) chore (ai): remove StreamData and mergeStreams (#6150) chore (build): fix typecheck setup (#6151) chore (ai): remove IdGenerator duplication (#6147) chore (ai): remove content from ui messages (#6145) Version Packages (canary) (#6115) feat (provider): support reasoning tokens, cached input tokens, total token in usage information (#6140) test (ai): use `mock-provider` instead of `openai` to match used `MockImageModelV2` (#6132) fix(providers): always use optional instead of mix of nullish for providerOptions (#6122) chore (ai): remove sendExtraMessageFields (#6120) chore(provider-utils): move ToolResultContent to provider-utils (#6121) feat(embed-many): respect supportsParallelCalls & concurrency (#6108) chore (provider-utils): return IdGenerator interface (#6118) chore (provider): improve jsdoc comments (#6117) chore (ai): remove outdated typecasts (#6116) chore (ai): remove useChat keepLastMessageOnError (#6114) fix(providers/openai): logprobs for stream alongside completion model (#6091) chore (ai): move maxSteps into UseChatOptions (#6113) docs (ai): add notes on schema .optional() (#6111) chore: update references to use ai-sdk.dev (#6076) (#6107) Version Packages (canary) (#6069) ...
iteratetograceness
pushed a commit
to iteratetograceness/ai
that referenced
this pull request
May 9, 2025
# Releases ## ai@5.0.0-canary.17 ### Major Changes - f04fb4a: chore (ai): replace useChat attachments with file ui parts - fd1924b: chore (ai): remove redundant `mimeType` property - fafc3f2: chore (ai): change file to parts to use urls instead of data - 92cb0a2: chore (ai): rename CoreMessage to ModelMessage ### Minor Changes - c9ad635: feat (ai): add filename to file ui parts ### Patch Changes - 9bd5ab5: feat (provider): add providerMetadata to ImageModelV2 interface (vercel#5977) The `experimental_generateImage` method from the `ai` package now returnes revised prompts for OpenAI's image models. ```js const prompt = 'Santa Claus driving a Cadillac'; const { providerMetadata } = await experimental_generateImage({ model: openai.image('dall-e-3'), prompt, }); const revisedPrompt = providerMetadata.openai.images[0]?.revisedPrompt; console.log({ prompt, revisedPrompt, }); ``` - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 ## @ai-sdk/provider-utils@3.0.0-canary.14 ### Major Changes - 957b739: chore (provider-utils): rename TestServerCall.requestBody to requestBodyJson ### Patch Changes - Updated dependencies [9bd5ab5] - @ai-sdk/provider@2.0.0-canary.13 ## @ai-sdk/amazon-bedrock@3.0.0-canary.14 ### Patch Changes - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 ## @ai-sdk/anthropic@2.0.0-canary.14 ### Patch Changes - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 ## @ai-sdk/assemblyai@0.0.1-canary.2 ### Patch Changes - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 ## @ai-sdk/azure@2.0.0-canary.16 ### Patch Changes - Updated dependencies [957b739] - Updated dependencies [136819b] - Updated dependencies [9bd5ab5] - Updated dependencies [284353f] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/openai@2.0.0-canary.15 - @ai-sdk/provider@2.0.0-canary.13 ## @ai-sdk/cerebras@1.0.0-canary.14 ### Patch Changes - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 - @ai-sdk/openai-compatible@1.0.0-canary.14 ## @ai-sdk/cohere@2.0.0-canary.15 ### Patch Changes - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 ## @ai-sdk/deepgram@1.0.0-canary.7 ### Patch Changes - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 ## @ai-sdk/deepinfra@1.0.0-canary.14 ### Patch Changes - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 - @ai-sdk/openai-compatible@1.0.0-canary.14 ## @ai-sdk/deepseek@1.0.0-canary.14 ### Patch Changes - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 - @ai-sdk/openai-compatible@1.0.0-canary.14 ## @ai-sdk/elevenlabs@1.0.0-canary.7 ### Patch Changes - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 ## @ai-sdk/fal@1.0.0-canary.15 ### Patch Changes - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 ## @ai-sdk/fireworks@1.0.0-canary.14 ### Patch Changes - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 - @ai-sdk/openai-compatible@1.0.0-canary.14 ## @ai-sdk/gladia@1.0.0-canary.4 ### Patch Changes - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 ## @ai-sdk/google@2.0.0-canary.15 ### Patch Changes - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 ## @ai-sdk/google-vertex@3.0.0-canary.15 ### Patch Changes - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 - @ai-sdk/anthropic@2.0.0-canary.14 - @ai-sdk/google@2.0.0-canary.15 ## @ai-sdk/groq@2.0.0-canary.15 ### Patch Changes - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 ## @ai-sdk/hume@1.0.0-canary.7 ### Patch Changes - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 ## @ai-sdk/langchain@1.0.0-canary.5 ### Patch Changes - Updated dependencies [f04fb4a] - Updated dependencies [fd1924b] - Updated dependencies [957b739] - Updated dependencies [fafc3f2] - Updated dependencies [c9ad635] - Updated dependencies [9bd5ab5] - Updated dependencies [92cb0a2] - ai@5.0.0-canary.17 - @ai-sdk/provider-utils@3.0.0-canary.14 ## @ai-sdk/llamaindex@1.0.0-canary.5 ### Patch Changes - Updated dependencies [f04fb4a] - Updated dependencies [fd1924b] - Updated dependencies [957b739] - Updated dependencies [fafc3f2] - Updated dependencies [c9ad635] - Updated dependencies [9bd5ab5] - Updated dependencies [92cb0a2] - ai@5.0.0-canary.17 - @ai-sdk/provider-utils@3.0.0-canary.14 ## @ai-sdk/lmnt@1.0.0-canary.7 ### Patch Changes - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 ## @ai-sdk/luma@1.0.0-canary.14 ### Patch Changes - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 ## @ai-sdk/mistral@2.0.0-canary.14 ### Patch Changes - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 ## @ai-sdk/openai@2.0.0-canary.15 ### Patch Changes - 136819b: chore(providers/openai): re-introduce logprobs as providerMetadata - 9bd5ab5: feat (provider): add providerMetadata to ImageModelV2 interface (vercel#5977) The `experimental_generateImage` method from the `ai` package now returnes revised prompts for OpenAI's image models. ```js const prompt = 'Santa Claus driving a Cadillac'; const { providerMetadata } = await experimental_generateImage({ model: openai.image('dall-e-3'), prompt, }); const revisedPrompt = providerMetadata.openai.images[0]?.revisedPrompt; console.log({ prompt, revisedPrompt, }); ``` - 284353f: fix(providers/openai): zod parse error with function - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 ## @ai-sdk/openai-compatible@1.0.0-canary.14 ### Patch Changes - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 ## @ai-sdk/perplexity@2.0.0-canary.14 ### Patch Changes - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 ## @ai-sdk/provider@2.0.0-canary.13 ### Patch Changes - 9bd5ab5: feat (provider): add providerMetadata to ImageModelV2 interface (vercel#5977) The `experimental_generateImage` method from the `ai` package now returnes revised prompts for OpenAI's image models. ```js const prompt = 'Santa Claus driving a Cadillac'; const { providerMetadata } = await experimental_generateImage({ model: openai.image('dall-e-3'), prompt, }); const revisedPrompt = providerMetadata.openai.images[0]?.revisedPrompt; console.log({ prompt, revisedPrompt, }); ``` ## @ai-sdk/react@2.0.0-canary.16 ### Patch Changes - c34ccd7: feat (ui/react): support resuming an ongoing stream - Updated dependencies [f04fb4a] - Updated dependencies [fd1924b] - Updated dependencies [957b739] - Updated dependencies [fafc3f2] - Updated dependencies [c9ad635] - Updated dependencies [9bd5ab5] - Updated dependencies [92cb0a2] - ai@5.0.0-canary.17 - @ai-sdk/provider-utils@3.0.0-canary.14 ## @ai-sdk/replicate@1.0.0-canary.14 ### Patch Changes - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 ## @ai-sdk/revai@1.0.0-canary.7 ### Patch Changes - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 ## @ai-sdk/rsc@1.0.0-canary.15 ### Patch Changes - Updated dependencies [f04fb4a] - Updated dependencies [fd1924b] - Updated dependencies [957b739] - Updated dependencies [fafc3f2] - Updated dependencies [c9ad635] - Updated dependencies [9bd5ab5] - Updated dependencies [92cb0a2] - ai@5.0.0-canary.17 - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 ## @ai-sdk/svelte@3.0.0-canary.16 ### Patch Changes - Updated dependencies [f04fb4a] - Updated dependencies [fd1924b] - Updated dependencies [957b739] - Updated dependencies [fafc3f2] - Updated dependencies [c9ad635] - Updated dependencies [9bd5ab5] - Updated dependencies [92cb0a2] - ai@5.0.0-canary.17 - @ai-sdk/provider-utils@3.0.0-canary.14 ## @ai-sdk/togetherai@1.0.0-canary.14 ### Patch Changes - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 - @ai-sdk/openai-compatible@1.0.0-canary.14 ## @ai-sdk/valibot@1.0.0-canary.16 ### Patch Changes - Updated dependencies [957b739] - @ai-sdk/provider-utils@3.0.0-canary.14 ## @ai-sdk/vue@2.0.0-canary.16 ### Patch Changes - Updated dependencies [f04fb4a] - Updated dependencies [fd1924b] - Updated dependencies [957b739] - Updated dependencies [fafc3f2] - Updated dependencies [c9ad635] - Updated dependencies [9bd5ab5] - Updated dependencies [92cb0a2] - ai@5.0.0-canary.17 - @ai-sdk/provider-utils@3.0.0-canary.14 ## @ai-sdk/xai@2.0.0-canary.14 ### Patch Changes - Updated dependencies [957b739] - Updated dependencies [9bd5ab5] - @ai-sdk/provider-utils@3.0.0-canary.14 - @ai-sdk/provider@2.0.0-canary.13 - @ai-sdk/openai-compatible@1.0.0-canary.14 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to v5, this PR will be updated.
v5is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exitonv5.Releases
ai@5.0.0-canary.17
Major Changes
mimeTypepropertyMinor Changes
Patch Changes
9bd5ab5: feat (provider): add providerMetadata to ImageModelV2 interface (feat (provider): add
providerMetadatatoImageModelV2interface #5977)The
experimental_generateImagemethod from theaipackage now returnes revised prompts for OpenAI's image models.Updated dependencies [957b739]
Updated dependencies [9bd5ab5]
@ai-sdk/provider-utils@3.0.0-canary.14
Major Changes
Patch Changes
@ai-sdk/amazon-bedrock@3.0.0-canary.14
Patch Changes
@ai-sdk/anthropic@2.0.0-canary.14
Patch Changes
@ai-sdk/assemblyai@0.0.1-canary.2
Patch Changes
@ai-sdk/azure@2.0.0-canary.16
Patch Changes
@ai-sdk/cerebras@1.0.0-canary.14
Patch Changes
@ai-sdk/cohere@2.0.0-canary.15
Patch Changes
@ai-sdk/deepgram@1.0.0-canary.7
Patch Changes
@ai-sdk/deepinfra@1.0.0-canary.14
Patch Changes
@ai-sdk/deepseek@1.0.0-canary.14
Patch Changes
@ai-sdk/elevenlabs@1.0.0-canary.7
Patch Changes
@ai-sdk/fal@1.0.0-canary.15
Patch Changes
@ai-sdk/fireworks@1.0.0-canary.14
Patch Changes
@ai-sdk/gladia@1.0.0-canary.4
Patch Changes
@ai-sdk/google@2.0.0-canary.15
Patch Changes
@ai-sdk/google-vertex@3.0.0-canary.15
Patch Changes
@ai-sdk/groq@2.0.0-canary.15
Patch Changes
@ai-sdk/hume@1.0.0-canary.7
Patch Changes
@ai-sdk/langchain@1.0.0-canary.5
Patch Changes
@ai-sdk/llamaindex@1.0.0-canary.5
Patch Changes
@ai-sdk/lmnt@1.0.0-canary.7
Patch Changes
@ai-sdk/luma@1.0.0-canary.14
Patch Changes
@ai-sdk/mistral@2.0.0-canary.14
Patch Changes
@ai-sdk/openai@2.0.0-canary.15
Patch Changes
136819b: chore(providers/openai): re-introduce logprobs as providerMetadata
9bd5ab5: feat (provider): add providerMetadata to ImageModelV2 interface (feat (provider): add
providerMetadatatoImageModelV2interface #5977)The
experimental_generateImagemethod from theaipackage now returnes revised prompts for OpenAI's image models.284353f: fix(providers/openai): zod parse error with function
Updated dependencies [957b739]
Updated dependencies [9bd5ab5]
@ai-sdk/openai-compatible@1.0.0-canary.14
Patch Changes
@ai-sdk/perplexity@2.0.0-canary.14
Patch Changes
@ai-sdk/provider@2.0.0-canary.13
Patch Changes
9bd5ab5: feat (provider): add providerMetadata to ImageModelV2 interface (feat (provider): add
providerMetadatatoImageModelV2interface #5977)The
experimental_generateImagemethod from theaipackage now returnes revised prompts for OpenAI's image models.@ai-sdk/react@2.0.0-canary.16
Patch Changes
@ai-sdk/replicate@1.0.0-canary.14
Patch Changes
@ai-sdk/revai@1.0.0-canary.7
Patch Changes
@ai-sdk/rsc@1.0.0-canary.15
Patch Changes
@ai-sdk/svelte@3.0.0-canary.16
Patch Changes
@ai-sdk/togetherai@1.0.0-canary.14
Patch Changes
@ai-sdk/valibot@1.0.0-canary.16
Patch Changes
@ai-sdk/vue@2.0.0-canary.16
Patch Changes
@ai-sdk/xai@2.0.0-canary.14
Patch Changes