Skip to content

[DONOTMERGE] verifying/implementing citations for cohere #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 499 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
499 commits
Select commit Hold shift + click to select a range
c34ccd7
feat (ui/react): support resuming an ongoing stream (#6053)
jeremyphilemon May 1, 2025
f04fb4a
chore (ai): replace useChat attachments with file ui parts (#6071)
lgrammel May 1, 2025
6caff7b
fix (docs): update formatting in useChat reference docs (#6100)
jeremyphilemon May 1, 2025
e574a12
core (ai/mcp): update experimental MCP client documentation for Strea…
samdenty May 2, 2025
6cdbe7a
feat(docs): add Weave observability provider (#6029) (#6094)
samdenty May 2, 2025
284353f
fix(providers/openai): zod parse error with function (#6074) (#6095)
samdenty May 2, 2025
33f908b
feat (docs): add Sarvam community provider (#6079) (#6096)
samdenty May 2, 2025
b5c47f3
feat (docs): add Dify community provider (#4084) (#6067) (#6103)
lgrammel May 2, 2025
c9ad635
feat (ai): add filename to file ui parts (#6104)
lgrammel May 2, 2025
92cb0a2
chore (ai): rename CoreMessage to ModelMessage (#6105)
lgrammel May 2, 2025
957b739
chore (provider-utils): rename TestServerCall.requestBody to requestB…
lgrammel May 2, 2025
c601562
Version Packages (canary) (#6069)
github-actions[bot] May 2, 2025
f769582
chore: update references to use ai-sdk.dev (#6076) (#6107)
samdenty May 2, 2025
d897a19
docs (ai): add notes on schema .optional() (#6111)
lgrammel May 2, 2025
332167b
chore (ai): move maxSteps into UseChatOptions (#6113)
lgrammel May 2, 2025
928fadf
fix(providers/openai): logprobs for stream alongside completion model…
samdenty May 2, 2025
c60f895
chore (ai): remove useChat keepLastMessageOnError (#6114)
lgrammel May 2, 2025
49ca6f4
chore (ai): remove outdated typecasts (#6116)
lgrammel May 2, 2025
a3b2e27
chore (provider): improve jsdoc comments (#6117)
lgrammel May 2, 2025
41fa418
chore (provider-utils): return IdGenerator interface (#6118)
lgrammel May 2, 2025
a8c8bd5
feat(embed-many): respect supportsParallelCalls & concurrency (#6108)
samdenty May 2, 2025
a571d6e
chore(provider-utils): move ToolResultContent to provider-utils (#6121)
samdenty May 2, 2025
a662dea
chore (ai): remove sendExtraMessageFields (#6120)
lgrammel May 2, 2025
6f231db
fix(providers): always use optional instead of mix of nullish for pro…
samdenty May 3, 2025
8919eff
test (ai): use `mock-provider` instead of `openai` to match used `Moc…
gr2m May 4, 2025
7979f7f
feat (provider): support reasoning tokens, cached input tokens, total…
lgrammel May 5, 2025
298b1c5
Version Packages (canary) (#6115)
github-actions[bot] May 5, 2025
319b989
chore (ai): remove content from ui messages (#6145)
lgrammel May 5, 2025
63d8c9c
chore (ai): remove IdGenerator duplication (#6147)
lgrammel May 5, 2025
1757264
chore (build): fix typecheck setup (#6151)
lgrammel May 5, 2025
e244a78
chore (ai): remove StreamData and mergeStreams (#6150)
lgrammel May 5, 2025
2d03e19
chore (ai): remove StreamCallbacks.onCompletion (#6152)
lgrammel May 5, 2025
53b7852
chore (ai): rename DataStreamString to DataStreamText (#6153)
lgrammel May 5, 2025
f163911
chore: remove misplaced changeset (#6154)
lgrammel May 5, 2025
be13cd9
chore (ai): simplify streamText data stream apis (#6155)
lgrammel May 5, 2025
70d11b7
chore (ai): move data stream related sources to `src/data-stream` (#6…
lgrammel May 5, 2025
3a961cb
chore: add note on provider method names (#6160)
lgrammel May 5, 2025
dcc549b
chore (ai): data stream updates (#6158)
lgrammel May 6, 2025
cb2b53a
chore (ai): refactor header preparation (#6165)
lgrammel May 6, 2025
441d042
chore (ui): data stream protocol v2 with SSEs (#6167)
lgrammel May 6, 2025
5a20a97
Version Packages (canary) (#6146)
github-actions[bot] May 6, 2025
52ce942
chore(providers/openai): enable strict compatibility by default (#6169)
samdenty May 6, 2025
5d06f1f
refactoring (ai): move errors to src/error (#6173)
lgrammel May 6, 2025
b78c243
chore (ai): move ui-related files to src/ui (#6187)
lgrammel May 7, 2025
13fef90
chore (ai): remove automatic conversion of UI messages to model messa…
lgrammel May 7, 2025
b983b51
feat (ai): support model message array in prompt (#6189)
lgrammel May 7, 2025
c7710a9
chore (ai): rename DataStreamToSSETransformStream to JsonToSseTransfo…
lgrammel May 7, 2025
bcea599
feat (ai): add content to generateText result (#6192)
lgrammel May 7, 2025
35fc02c
chore (ui): rename RequestOptions to CompletionRequestOptions (#6194)
lgrammel May 7, 2025
e90d45d
chore (rsc): move HANGING_STREAM_WARNING_TIME constant into @ai-sdk/r…
lgrammel May 7, 2025
8ecd6fe
chore (ai): move utils to src/util (#6196)
lgrammel May 7, 2025
6dff928
chore (ai): restructure index files and entry point (#6198)
lgrammel May 7, 2025
87b828f
fix(provider-utils): fix SSE parser bug (CRLF) (#6197) (#6200)
lgrammel May 7, 2025
4f84ab3
fix (docs): typo (#6164) (#6201)
lgrammel May 7, 2025
bc3109f
chore (ai): push stream-callbacks into langchain/llamaindex adapters …
lgrammel May 7, 2025
da70d79
chore (ai): remove getUIText() (#6202)
lgrammel May 7, 2025
496bbc1
chore (ui): inline/remove ChatRequest type (#6207)
lgrammel May 7, 2025
48d675a
feat (ai): add content to streamText result (#6209)
lgrammel May 7, 2025
661ac7f
Version Packages (canary) (#6172)
github-actions[bot] May 7, 2025
516be5b
fix (ai)!: move image model settings into `generateImage({maxImagesPe…
gr2m May 7, 2025
82ef8a7
chore (docs): update code snippets to handle race condition when resu…
lgrammel May 8, 2025
8382810
fix (build): fix changeset (#6231)
lgrammel May 8, 2025
d964901
chore (ai): remove default setting values (#6223)
lgrammel May 8, 2025
987bb27
fix (docs): update Laminar observability provider (#6170) (#6222)
samdenty May 9, 2025
f07a6d4
fix(providers/google): accept nullish in safetyRatings (#6124) (#6221)
samdenty May 9, 2025
1409e13
chore (ai): remove experimental continueSteps (#6247)
lgrammel May 9, 2025
66af894
fix (ai): respect content order in toResponseMessages (#6245)
lgrammel May 9, 2025
ea94585
chore (ai): extract ResponseMessage to separate file (#6251)
lgrammel May 9, 2025
0560977
chore (ai): improve consistency of generate text result, stream text …
lgrammel May 9, 2025
cff5a9e
fix (ai-sdk/vue): status reactivity (#6234) (#6262)
lgrammel May 10, 2025
bfbfc4c
feat (ai): streamText/generateText: totalUsage contains usage for all…
lgrammel May 10, 2025
ea7a7c9
feat (ui): UI message metadata (#6265)
lgrammel May 12, 2025
6a101c9
Version Packages (canary) (#6232)
github-actions[bot] May 12, 2025
765f1cd
chore (ai): remove deprecated useChat isLoading helper (#6276)
lgrammel May 12, 2025
a34eb39
chore (ai): remove `data` and `allowEmptySubmit` from `ChatRequestOpt…
lgrammel May 12, 2025
e7dc6c7
chore (ai): remove onResponse callback (#6281)
lgrammel May 12, 2025
b33ed7a
chore (ai): rename DataStream* to UIMessage* (#6283)
lgrammel May 12, 2025
047ee17
Version Packages (canary) (#6277)
github-actions[bot] May 12, 2025
40acf9b
feat (ui): introduce ChatStore and ChatTransport (#6301)
lgrammel May 14, 2025
2433bfb
Version Packages (canary) (#6314)
github-actions[bot] May 14, 2025
bedb239
chore (ai): make ui stream parts value optional when it's not require…
lgrammel May 14, 2025
3246d7e
(v5) fix next-openai example bugs (#6319)
nicoalbanese May 14, 2025
507ac1d
fix (ui/react): update messages immediately with the submitted user m…
lgrammel May 14, 2025
2b9bbcd
feat (ai): improve prompt validation error message (#6324)
lgrammel May 14, 2025
50f0362
fix (ai): fix experimental sendStart/sendFinish options in streamText…
lgrammel May 14, 2025
faf8446
chore (provider-utils): replace zod with standard-schema where possib…
gr2m May 15, 2025
ed675de
feat (ai): add ui data parts (#6317)
lgrammel May 15, 2025
f7e8bf4
chore (ai): flatten ui message stream parts (#6332)
lgrammel May 15, 2025
cda32ba
fix (ai): send `start` part in correct position in stream (streamText…
lgrammel May 15, 2025
64f6d64
feat (ai): replace maxSteps with continueUntil (generateText) (#6338)
lgrammel May 15, 2025
b9294c1
Version Packages (canary) (#6321)
github-actions[bot] May 15, 2025
3f2f00c
feat: `ImageModelV2#maxImagesPerCall` can be set to a function that r…
gr2m May 16, 2025
109c0ac
chore (ai): rename id in post request to `chatId` (#6348)
lgrammel May 16, 2025
5034af3
fix (docs): mcpClient.tools() need to await (#6186) (#6349)
lgrammel May 16, 2025
ce44353
fix (docs): Laminar observability - add note on next.config (#6248) (…
lgrammel May 16, 2025
c518d21
chore (github): add version section to support issue template (#6315)…
lgrammel May 16, 2025
dd459c4
docs: add Patronus community page (#6311) (#6352)
lgrammel May 16, 2025
b346545
feat (ai): add data ui part schemas (#6353)
lgrammel May 16, 2025
ec517bb
chore (release): switch to alpha (#6355)
lgrammel May 16, 2025
8729d85
Version Packages (alpha) (#6347)
github-actions[bot] May 16, 2025
82aa95d
fix (ai): merge data ui stream parts correctly (#6371)
lgrammel May 17, 2025
26535e0
chore: sync alpha 2 release (#6373)
lgrammel May 17, 2025
b94e8e0
Version Packages (alpha) (#6372)
github-actions[bot] May 17, 2025
5dab17d
chore: remove google fonts from examples (#6380)
lgrammel May 18, 2025
ab7ccef
chore (ai): change source ui message parts to source-url (#6387)
lgrammel May 20, 2025
257224b
chore (ai): separate TextStreamChatTransport (#6389)
lgrammel May 20, 2025
d306260
feat (ai): replace maxSteps with continueUntil (streamText) (#6393)
lgrammel May 20, 2025
ab39c60
chore (ai): rename DelayedPromise value property to promise (#6394)
lgrammel May 20, 2025
54ae56c
chore: upgrade to pnpm 10 (#6396)
lgrammel May 20, 2025
0463011
fix (ai): update source url stream part (#6398)
lgrammel May 20, 2025
64e3d26
chore: add build:packages target (#6399)
lgrammel May 20, 2025
6b98118
chore: sync alpha 3 release (#6400)
lgrammel May 20, 2025
c9f13d0
Version Packages (alpha) (#6392)
github-actions[bot] May 20, 2025
5357359
refactor: use `Object.fromEntries` instead of `.forEach()` for simpli…
gr2m May 21, 2025
a8243bb
docs(examples/ai-core): add `REPLICATE_API_TOKEN` to `examples/ai-cor…
gr2m May 21, 2025
3d1dcca
feat (fal): Set `.providerMetaData` for image model responses (#6406)
gr2m May 21, 2025
9ccce3a
feat (google-vertex): Set `.providerMetaData` for image model respons…
gr2m May 21, 2025
6b14724
feat (ai/react): enable experimental throttle (#6346)
iteratetograceness May 22, 2025
9315076
chore (ai): rename continueUntil to stopWhen. Rename maxSteps stop co…
lgrammel May 22, 2025
b32c141
feat (ai): add array support to stopWhen (#6339)
lgrammel May 22, 2025
ca8aac6
feat (providers/anthropic): add claude v4 models (#6432)
jeremyphilemon May 22, 2025
72d7d72
chore (ai): stable activeTools (#6444)
lgrammel May 23, 2025
5f2b3d4
chore (ai): stable prepareStep (#6448)
lgrammel May 23, 2025
7d97ab6
chore: sync alpha 4 release (#6450)
lgrammel May 23, 2025
37a916d
feat (ai): add prepareSteps to streamText (#6449)
lgrammel May 23, 2025
dc714f3
chore: sync alpha 4 release (#6451)
lgrammel May 23, 2025
94c7390
Version Packages (alpha) (#6417)
github-actions[bot] May 23, 2025
7324c21
fix (ai/telemetry): serialize UInt8Arrays as base64 for inner telemet…
lgrammel May 26, 2025
ef256ed
chore (ai): refactor and use chatstore in svelte (#6487)
lgrammel May 26, 2025
cf9af6e
feat (ai): allow sync prepareStep (#6496)
lgrammel May 27, 2025
1675396
fix (ai/ui): avoid job executor deadlock when adding tool result (#6495)
iteratetograceness May 27, 2025
0071793
feat (examples): add prepareStep example (#6497)
lgrammel May 27, 2025
655cf3c
feat (ui): add onFinish to createUIMessageStream (#6498)
lgrammel May 27, 2025
1ed0287
chore (ai): stable sendStart/sendFinish options (#6499)
lgrammel May 27, 2025
9eb5417
feat (providers/vercel): initial vercel provider (#6464)
shaper May 27, 2025
825e8d7
chore: sync alpha 5 release (#6500)
lgrammel May 27, 2025
3c3803c
Version Packages (alpha) (#6483)
github-actions[bot] May 27, 2025
48a7606
feat (ai): support changing the system prompt in prepareSteps (#6503)
lgrammel May 27, 2025
6bc356e
docs: update custom provider page for v2 (#6462)
nicoalbanese May 27, 2025
f6b3d95
fix (release): update all packages to alpha.5 (#6515)
lgrammel May 28, 2025
8cbbad6
chore (vue): refactor and use chat store in vue (#6514)
iteratetograceness May 28, 2025
6c2c708
feat (providers/gateway): initial gateway provider (#6513)
shaper May 28, 2025
0d2c085
feat (ai): support string model ids through gateway (#6516)
lgrammel May 28, 2025
f2333d6
Version Packages (alpha) (#6504)
github-actions[bot] May 28, 2025
db345da
chore (ai): remove exports of internal ui functions (#6517)
lgrammel May 28, 2025
9b0da33
fix (ai): do not send id with start unless specified (#6523)
lgrammel May 28, 2025
247ee0c
chore (ai): remove steps from tool invocation ui parts (#6521)
lgrammel May 28, 2025
5c56081
chore: sync alpha 7 release (#6524)
lgrammel May 28, 2025
4f9fc9c
Version Packages (alpha) (#6519)
github-actions[bot] May 28, 2025
989ac75
chore (providers/gateway): update chat model ids (#6544)
shaper May 30, 2025
7742ba3
feat (providers/gateway): add gateway error types with error detail (…
shaper Jun 1, 2025
ad66c0e
feat (provider/anthropic): json response schema support via tool call…
lgrammel Jun 1, 2025
3cbcbb7
feat (providers/gateway): share common gateway error transform logic …
shaper Jun 1, 2025
585f5bb
ci: fix broken assign-team-pr workflow (#6567)
shaper Jun 1, 2025
78fef82
docs (changeset): the change from #6189 is not a breaking change (#6557)
gr2m Jun 1, 2025
4fef487
feat: support for zod v4 schema validation (#6421)
gr2m Jun 1, 2025
4af5233
fix (providers/openai): pdf parts when passed as a string url (or Uin…
zhm Jun 2, 2025
1a635b5
fix (providers/google): update supportedUrls to only support native U…
jeremyphilemon Jun 2, 2025
d5472c9
refactoring (ui): chat store cleanups (#6576)
lgrammel Jun 2, 2025
075711d
fix (provider/anthropic): return stop finish reason for json output w…
lgrammel Jun 2, 2025
9222aeb
chore: sync alpha 8 release (#6578)
lgrammel Jun 2, 2025
6b1c55c
feat (ai): introduce GLOBAL_DEFAULT_PROVIDER (#6579)
lgrammel Jun 2, 2025
c25cbce
feat (ai): use console.error as default error handler for streamText …
lgrammel Jun 2, 2025
19de376
docs (v5): Add v5 alpha announcement page (#6527)
nicoalbanese Jun 2, 2025
2e4f9e4
feat (ai): improved error messages when using gateway (#6583)
lgrammel Jun 2, 2025
819fe61
Version Packages (alpha) (#6553)
github-actions[bot] Jun 2, 2025
26b6dd0
feat (providers/gateway): include deployment and request id (#6591)
shaper Jun 3, 2025
abd6877
docs: update core docs to v5 (#6585)
nicoalbanese Jun 3, 2025
ed994f1
feat (examples): add next baseline example (#6596)
lgrammel Jun 3, 2025
495c9dd
docs: add warning to v5 spec (#6600)
nicoalbanese Jun 3, 2025
107cd62
feat(xai): native chat language model implementation (#6588)
dancer Jun 3, 2025
b94b4ed
feat(xai): add live search support (#6605)
dancer Jun 4, 2025
362b048
feat(anthropic): add web search tool support (#6622)
dancer Jun 4, 2025
8255639
fix: bump `zod` to fix use with Google APIs + `.literal()` (#6609)
gr2m Jun 4, 2025
811dff3
chore: sync alpha 9 release (#6635)
lgrammel Jun 5, 2025
b1d5a7d
docs (v5): updated claude 4 guide (#6636)
dancer Jun 5, 2025
b248983
feat(fal): support kontext model (#6637)
dancer Jun 5, 2025
c87b7e4
feat(provider/amazon-bedrock): add Claude 4 model ids (#6638)
dancer Jun 5, 2025
c1591da
docs (v5): update AI SDK Core Reference Docs (#6627)
nicoalbanese Jun 5, 2025
9ae327d
chore (ui): replace chat store concept with chat instances (#6601)
lgrammel Jun 5, 2025
b1b7ab6
Version Packages (alpha) (#6593)
github-actions[bot] Jun 5, 2025
bb13f18
feat(providers/google): Add reasoning token output support (#6643)
dancer Jun 6, 2025
581a9be
fix (provider/google): prevent error when thinking signature is used …
dancer Jun 6, 2025
ac5f233
fix: add url validation for google vertex anthropic provider (#6618)
dancer Jun 6, 2025
7bb58d4
chore (ai): restructure prepareRequest (#6650)
lgrammel Jun 6, 2025
39e0091
refactoring: use abortSignal (#6652)
lgrammel Jun 6, 2025
98f25e5
chore (ui): remove managed chat inputs (#6653)
lgrammel Jun 6, 2025
c4df419
chore: sync alpha 10 release (#6659)
lgrammel Jun 6, 2025
2d1132a
Version Packages (alpha) (#6649)
github-actions[bot] Jun 6, 2025
82d73dd
text format (#6678)
dancer Jun 9, 2025
8d12da5
feat(provider/openai): add serviceTier option for flex processing (#6…
dancer Jun 9, 2025
25f3454
feat(anthropic/citation): pdf citation support (#6654)
dancer Jun 9, 2025
d546725
fix(provider/amazon-bedrock): use consistent document names (#6677)
dancer Jun 9, 2025
ee8dd3f
chore (ai): fix console.errors/out in tests (#6688)
lgrammel Jun 9, 2025
0c2fbf4
fix (ai): fix method auto-complete in tools (#6690)
lgrammel Jun 9, 2025
e8324c5
feat (ai): add args callbacks to tools (#6681)
lgrammel Jun 10, 2025
c1e6647
chore: sync alpha 11 release (#6694)
lgrammel Jun 10, 2025
a541c9e
docs(v5): add requesty ai provider (#6660) (#6693)
nicoalbanese Jun 10, 2025
5a156c4
Version Packages (alpha) (#6680)
github-actions[bot] Jun 10, 2025
7e2b061
refactoring: push subscription mechanism into react chat (#6661)
elliott-with-the-longest-name-on-github Jun 10, 2025
4fd442b
feat(cohere): add citations support for text documents (#6691)
dancer Jun 10, 2025
da1e6f0
feat (ui): add generics to ui message stream parts (#6697)
lgrammel Jun 10, 2025
88a6bbd
chore (ai): improve createUIMessageStream type safety (#6709)
lgrammel Jun 11, 2025
4892798
chore (ai): always stream tool calls (#6710)
lgrammel Jun 11, 2025
2f542fa
feat (provider/openai): add `reasoning-part-finish` to openai respons…
remorses Jun 11, 2025
e2aceaf
feat: add raw chunk support (#6695)
lgrammel Jun 11, 2025
0261b70
Version Packages (alpha) (#6698)
github-actions[bot] Jun 11, 2025
d7cb6b4
chore (valibot): update to valibot 1.1 (#6712)
dancer Jun 11, 2025
478acd8
feat(mistral): added magistral reasoning models (#6715)
dancer Jun 11, 2025
ee5a9c0
feat (ai): streamText onChunk raw chunk support (#6720)
dancer Jun 12, 2025
33eb499
feat (ai): inject message id in createUIMessageStream (#6726)
lgrammel Jun 12, 2025
1f55c21
chore (ai): send reasoning to the client by default (#6729)
lgrammel Jun 12, 2025
6a83f7d
refactoring (ai): restructure message metadata transfer (#6733)
lgrammel Jun 13, 2025
8dfcb11
feat(provider/anthropic): add text citation support (#6727)
dancer Jun 13, 2025
901df02
feat (ui): use UI_MESSAGE generic (#6735)
lgrammel Jun 13, 2025
0a710d8
feat (ui): typed tool parts in ui messages (#6736)
lgrammel Jun 13, 2025
68ecf2f
chore: sync alpha 13 release (#6739)
lgrammel Jun 13, 2025
834ab13
Version Packages (alpha) (#6718)
github-actions[bot] Jun 13, 2025
b5da06a
changed to LanguageModelV2ProviderDefinedClientTool (#6741)
dancer Jun 14, 2025
2e13791
feat(anthropic): add server-side web search support (#6743)
dancer Jun 16, 2025
9007497
docs (v5): add smithery tools (#6755)
nicoalbanese Jun 16, 2025
6392f60
fix(anthropic): resolve web search API validation errors with partial…
dancer Jun 16, 2025
63f9e9b
chore (provider,ai): tools have input/output instead of args,result (…
lgrammel Jun 16, 2025
995baa0
fix (react): `structuredClone` message in `replaceMessage` (#6762)
iteratetograceness Jun 16, 2025
d8c8827
Version Packages (alpha) (#6744)
github-actions[bot] Jun 16, 2025
b1e3abd
feat (ai): expose ui message stream headers (#6766)
lgrammel Jun 17, 2025
d5b173f
docs(changeset): #5660 is not a breaking change (#6765)
gr2m Jun 17, 2025
6fbc2f8
refactoring (react): remove SubscriptionRegistrars interface (#6767)
lgrammel Jun 17, 2025
3ee56da
chore (ai): remove outdated note (#6769)
lgrammel Jun 17, 2025
ae0dc0a
feat (ui/react): add resume flag to useChat (#6770)
lgrammel Jun 17, 2025
395c85e
feat (ai): add consumeSseStream option to UI message stream responses…
lgrammel Jun 17, 2025
60e2c56
feat (ai): restructure chat transports (#6746)
lgrammel Jun 17, 2025
d884051
feat (ai): simplify default provider setup (#6772)
lgrammel Jun 17, 2025
954aa73
feat (ui): extended regenerate support (#6773)
lgrammel Jun 17, 2025
04d5063
chore (ai): rename default provider global to AI_SDK_DEFAULT_PROVIDER…
lgrammel Jun 18, 2025
c145d62
feat (providers/gateway): add createGateway shorthand alias for creat…
shaper Jun 18, 2025
b4b4bb2
chore (ui): rename experimental_resume to resumeStream (#6780)
lgrammel Jun 18, 2025
142576e
feat (ui): support message replacement in chat via messageId param on…
lgrammel Jun 18, 2025
8ba77a7
chore (provider-utils): use eventsource-parser library (#6781)
lgrammel Jun 18, 2025
48d257a
chore: sync alpha 15 release (#6782)
lgrammel Jun 18, 2025
a478f87
Version Packages (alpha) (#6768)
github-actions[bot] Jun 18, 2025
9b943d5
chore: cohere-test
dubwub Jun 19, 2025
212d3e1
fix: cleanup
dubwub Jun 19, 2025
77a18fc
chore: working test
dubwub Jun 19, 2025
b2255c0
test
dubwub Jun 19, 2025
bdce690
test
dubwub Jun 19, 2025
a4a5eed
update
dubwub Jun 19, 2025
29d5439
reverting package.json changes
dubwub Jun 23, 2025
da6bd8c
adfsdf
dubwub Jun 23, 2025
78c28ce
asdfdsaf
dubwub Jun 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .changeset/afraid-moles-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@ai-sdk/rsc': major
'ai': major
---

chore(@ai-sdk/rsc): extract to separate package
6 changes: 6 additions & 0 deletions .changeset/angry-crabs-develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@ai-sdk/provider-utils': patch
'ai': patch
---

chore(provider-utils): move ToolResultContent to provider-utils
5 changes: 5 additions & 0 deletions .changeset/angry-kings-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/mistral': patch
---

chore(providers/mistral): convert to providerOptions
5 changes: 5 additions & 0 deletions .changeset/angry-plants-sin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/amazon-bedrock': patch
---

chore(providers/bedrock): convert to providerOptions
5 changes: 5 additions & 0 deletions .changeset/angry-poems-learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/azure': patch
---

feat (provider/azure): add OpenAI responses API support
5 changes: 5 additions & 0 deletions .changeset/angry-timers-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/google-vertex': patch
---

feat (provider/google-vertex): add imagen-3.0-generate-002
5 changes: 5 additions & 0 deletions .changeset/beige-ligers-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'ai': patch
---

feat(smooth-stream): chunking callbacks
5 changes: 5 additions & 0 deletions .changeset/beige-penguins-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/deepinfra': patch
---

feat (providers/deepinfra): add llama 4 models
5 changes: 5 additions & 0 deletions .changeset/beige-socks-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'ai': major
---

chore: rename reasoning to reasoningText etc
5 changes: 5 additions & 0 deletions .changeset/big-impalas-grin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'ai': major
---

chore (ai): remove automatic conversion of UI messages to model messages
5 changes: 5 additions & 0 deletions .changeset/big-panthers-judge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/openai': patch
---

chore(providers/openai): convert to providerOptions
5 changes: 5 additions & 0 deletions .changeset/brave-numbers-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/openai': patch
---

feat (provider/openai): o4 updates for responses api
5 changes: 5 additions & 0 deletions .changeset/brown-eagles-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'ai': patch
---

feat (ui): add generics to ui message stream parts
5 changes: 5 additions & 0 deletions .changeset/brown-poems-boil.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'ai': patch
---

chore (ai): remove provider re-exports
5 changes: 5 additions & 0 deletions .changeset/calm-boats-complain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/provider': major
---

chore: restructure language model supported urls
7 changes: 7 additions & 0 deletions .changeset/calm-dragons-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'ai': major
---

- remove setting temperature to `0` by default
- remove `null` option from `DefaultSettingsMiddleware`
- remove setting defaults for `temperature` and `stopSequences` in `ai` to enable middleware changes
6 changes: 6 additions & 0 deletions .changeset/chatty-ladybugs-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@ai-sdk/rsc': patch
'ai': patch
---

chore (rsc): move HANGING_STREAM_WARNING_TIME constant into @ai-sdk/rsc package
5 changes: 5 additions & 0 deletions .changeset/chatty-steaks-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'ai': patch
---

feat (ai): add array support to stopWhen
7 changes: 7 additions & 0 deletions .changeset/chilled-clocks-brush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@ai-sdk/llamaindex': patch
'@ai-sdk/langchain': patch
'ai': patch
---

chore (ai): push stream-callbacks into langchain/llamaindex adapters
5 changes: 5 additions & 0 deletions .changeset/chilled-queens-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/provider': major
---

chore (provider): cleanup request and rawRequest (language model v2)
5 changes: 5 additions & 0 deletions .changeset/chilly-chairs-press.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/gateway': patch
---

feat (providers/gateway): include deployment and request id
5 changes: 5 additions & 0 deletions .changeset/chilly-teachers-brush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/anthropic': patch
---

feat (provider/anthropic): json response schema support via tool calls
5 changes: 5 additions & 0 deletions .changeset/chilly-tips-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/google': patch
---

feat (provider/google): add new gemini models
8 changes: 8 additions & 0 deletions .changeset/clean-ants-brake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@ai-sdk/svelte': major
'@ai-sdk/react': major
'@ai-sdk/vue': major
'ai': major
---

feat (ui): typed tool parts in ui messages
5 changes: 5 additions & 0 deletions .changeset/clean-numbers-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/provider-utils': patch
---

feat(provider-utils): add TestServerCall#requestCredentials
5 changes: 5 additions & 0 deletions .changeset/clever-coats-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/provider': patch
---

release alpha.4
5 changes: 5 additions & 0 deletions .changeset/clever-games-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/gladia': patch
---

fix (provider/gladia): correct workspace dependencies
5 changes: 5 additions & 0 deletions .changeset/cold-bags-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/provider': patch
---

update to LanguageModelV2ProviderDefinedClientTool to add server side tool later on
5 changes: 5 additions & 0 deletions .changeset/cool-buckets-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/provider': major
---

chore (provider): merge rawRequest into request (language model v2)
6 changes: 6 additions & 0 deletions .changeset/cool-bulldogs-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@ai-sdk/provider': major
'ai': major
---

chore (provider,ai): tools have input/output instead of args,result
5 changes: 5 additions & 0 deletions .changeset/cool-gifts-film.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/openai': patch
---

chore(providers/openai): update embedding model to use providerOptions
5 changes: 5 additions & 0 deletions .changeset/cool-shrimps-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/provider-utils': major
---

remove deprecated `CoreToolCall` and `CoreToolResult` types
5 changes: 5 additions & 0 deletions .changeset/cuddly-eels-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'ai': major
---

chore (ai): change source ui message parts to source-url
32 changes: 32 additions & 0 deletions .changeset/cuddly-icons-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
'@ai-sdk/provider-utils': major
'@ai-sdk/google-vertex': major
'@ai-sdk/anthropic': major
'@ai-sdk/react': major
'@ai-sdk/vue': major
'ai': major
'@ai-sdk/amazon-bedrock': major
'@ai-sdk/azure': major
'@ai-sdk/cerebras': major
'@ai-sdk/codemod': major
'@ai-sdk/cohere': major
'@ai-sdk/deepinfra': major
'@ai-sdk/deepseek': major
'@ai-sdk/fal': major
'@ai-sdk/fireworks': major
'@ai-sdk/google': major
'@ai-sdk/groq': major
'@ai-sdk/luma': major
'@ai-sdk/mistral': major
'@ai-sdk/openai': major
'@ai-sdk/openai-compatible': major
'@ai-sdk/perplexity': major
'@ai-sdk/provider': major
'@ai-sdk/replicate': major
'@ai-sdk/svelte': major
'@ai-sdk/togetherai': major
'@ai-sdk/valibot': major
'@ai-sdk/xai': major
---

AI SDK 5
5 changes: 5 additions & 0 deletions .changeset/cuddly-kangaroos-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/amazon-bedrock': patch
---

chore(providers/bedrock): use camelCase for providerOptions
5 changes: 5 additions & 0 deletions .changeset/curly-peaches-clap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/cohere': patch
---

fix (provider/cohere): tool calling
5 changes: 5 additions & 0 deletions .changeset/curvy-lobsters-share.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'ai': major
---

chore (ai): remove "data" UIMessage role
5 changes: 5 additions & 0 deletions .changeset/dirty-eggs-breathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'ai': major
---

refactoring (ai): restructure message metadata transfer
5 changes: 5 additions & 0 deletions .changeset/dull-candles-trade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/openai-compatible': patch
---

chore(openai-compatible): remove simulateStreaming
6 changes: 6 additions & 0 deletions .changeset/dull-points-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@ai-sdk/fal': patch
'ai': patch
---

feat(providers/fal): add transcribe
5 changes: 5 additions & 0 deletions .changeset/eight-emus-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/provider': major
---

chore: move warnings into stream-start part (spec)
14 changes: 14 additions & 0 deletions .changeset/eight-months-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
'@ai-sdk/provider-utils': patch
'ai': patch
---

feat: support for zod v4 for schema validation

All these methods now accept both a zod v4 and zod v3 schemas for validation:

- `generateObject()`
- `streamObject()`
- `generateText()`
- `experimental_useObject()` from `@ai-sdk/react`
- `streamUI()` from `@ai-sdk/rsc`
5 changes: 5 additions & 0 deletions .changeset/eighty-flowers-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'ai': patch
---

feat (ai): expose ui message stream headers
5 changes: 5 additions & 0 deletions .changeset/eighty-pugs-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/provider': patch
---

release alpha.15
5 changes: 5 additions & 0 deletions .changeset/eighty-seals-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/xai': patch
---

fix(providers/xai): edit supported models for structured output
5 changes: 5 additions & 0 deletions .changeset/eleven-lobsters-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/provider-utils': patch
---

refactor (provider-utils): move `customAlphabet()` method from `nanoid` into codebase
5 changes: 5 additions & 0 deletions .changeset/eleven-pets-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/provider': patch
---

chore (provider): tweak provider definition
5 changes: 5 additions & 0 deletions .changeset/empty-fireants-learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'ai': major
---

chore (ai): remove exports of internal ui functions
5 changes: 5 additions & 0 deletions .changeset/empty-flowers-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/google': patch
---

update supportedUrls to only support native URL
5 changes: 5 additions & 0 deletions .changeset/empty-pets-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/openai': patch
---

chore(providers/openai-transcription): switch to providerOptions
5 changes: 5 additions & 0 deletions .changeset/empty-walls-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/openai': patch
---

Add reasoning-part-finish parts for reasoning models in the responses API
7 changes: 7 additions & 0 deletions .changeset/fair-bikes-hear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@ai-sdk/svelte': major
'@ai-sdk/react': major
'ai': major
---

chore (ui): inline/remove ChatRequest type
12 changes: 12 additions & 0 deletions .changeset/fair-cobras-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'@ai-sdk/openai-compatible': patch
'@ai-sdk/amazon-bedrock': patch
'@ai-sdk/togetherai': patch
'@ai-sdk/deepinfra': patch
'@ai-sdk/fireworks': patch
'@ai-sdk/cerebras': patch
'@ai-sdk/deepseek': patch
'@ai-sdk/xai': patch
---

feat(providers/openai-compatible): convert to providerOptions
5 changes: 5 additions & 0 deletions .changeset/fair-cups-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/revai': patch
---

feat(providers/revai): add transcribe
5 changes: 5 additions & 0 deletions .changeset/fair-swans-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/google-vertex': patch
---

chore(providers/google-vertex): update embedding model to use providerOptions
5 changes: 5 additions & 0 deletions .changeset/famous-eggs-camp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/perplexity': patch
---

feat (provider/perplexity): add sonar-deep-research model
5 changes: 5 additions & 0 deletions .changeset/famous-fans-provide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'ai': patch
---

chore(providers/llamaindex): extract to separate package
Loading