Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
265 commits
Select commit Hold shift + click to select a range
1789884
feat (provider/{google, google-vertex}): expose type for validating p…
iteratetograceness Apr 5, 2025
5f61296
fix (docs): correct content outside description in jest docs (#5559)
shaper Apr 5, 2025
bd8b669
Version Packages (#5558)
github-actions[bot] Apr 5, 2025
3d1bd38
feat (core): add chunking functions support to smoothStream (#5548)
lgrammel Apr 5, 2025
5c47bbd
Version Packages (#5561)
github-actions[bot] Apr 5, 2025
665a567
fix (core): consume stream on abort (#5492)
iteratetograceness Apr 5, 2025
8fdc8fe
feat (provider/groq): add llama 4 model (#5565)
shaper Apr 5, 2025
64f37ac
Version Packages (#5564)
github-actions[bot] Apr 5, 2025
1e8e66d
fix (provider/google): allow "OFF" for Google HarmBlockThreshold (#5550)
kvnang Apr 6, 2025
e82024e
feat (provider/azure): add OpenAI responses API support (#5461)
AVtheking Apr 6, 2025
4b97ea9
Version Packages (#5570)
github-actions[bot] Apr 6, 2025
264b1e0
feat (providers/deepinfra): add llama 4 models (#5572)
shaper Apr 6, 2025
e5f6a50
Version Packages (#5573)
github-actions[bot] Apr 6, 2025
3e88f4d
fix (ai/mcp): prevent mutation of customEnv (#5583)
cgoinglove Apr 7, 2025
b8e7fb7
docs: add stackone toolset (#5585)
mattzcarey Apr 7, 2025
7bff5e2
fix: changeset
lgrammel Apr 8, 2025
ddf0454
fix(docs): correct Completions API example by using openai() instead …
faiz-gear Apr 8, 2025
c21fa6d
feat: add transcription with `experimental_transcribe` (#5496)
haydenbleasel Apr 8, 2025
c96e093
Version Packages (#5590)
github-actions[bot] Apr 8, 2025
013faa8
fix (provider/openai): increase transcription model resilience (#5600)
lgrammel Apr 8, 2025
45010dd
Version Packages (#5601)
github-actions[bot] Apr 8, 2025
2669f00
docs: update transcription highlights (#5603)
nicoalbanese Apr 8, 2025
aeba38e
feat (provider/anthropic): Add URL-based PDF support (#5470)
anishsrinivasan Apr 9, 2025
b35e490
Version Packages (#5617)
github-actions[bot] Apr 9, 2025
158ddc4
docs: update llms txt header and remove outdated troubleshooting page…
nicoalbanese Apr 9, 2025
f35277b
chore: improve contributing guide & add PR template checklist (#5627)
samdenty Apr 9, 2025
632cf27
docs: update svelte kit guide to use parts (#5630)
nicoalbanese Apr 9, 2025
c0fa382
docs: remove broken link from vc deployment guide (#5631)
nicoalbanese Apr 9, 2025
0089ef5
docs: update nuxt guide parts (#5632)
nicoalbanese Apr 9, 2025
7b17e33
docs: update intro page (#5633)
nicoalbanese Apr 9, 2025
4c0e864
chore: update docs on `providerOption` levels (#5612)
iteratetograceness Apr 9, 2025
45de936
feat (providers/xai): add grok-3 models (#5644)
shaper Apr 10, 2025
f25b78f
Version Packages (#5645)
github-actions[bot] Apr 10, 2025
cb76856
chore: make pr task checklist easier to follow (#5641)
samdenty Apr 10, 2025
1bbc698
chore(openai-compatible): deprecate simulateStreaming (#5656)
samdenty Apr 10, 2025
dbe53e7
fix (provider/openai): add support for gpt-4o-search-preview model an…
Sma1lboy Apr 10, 2025
84ffaba
fix (provider/openai): transcription fixes (#5667)
haydenbleasel Apr 10, 2025
6097d25
Version Packages (#5659)
github-actions[bot] Apr 10, 2025
452bf12
fix (ai/mcp): improve handling of zero-argument MCP tools (#5670)
iteratetograceness Apr 10, 2025
ad30a89
Version Packages (#5672)
github-actions[bot] Apr 11, 2025
5c171f9
fix (docs): generateObject modelId typo (#5688)
SnehanChakravarthi Apr 11, 2025
96c7d1a
fix (docs): complete phrase in bedrock jsdoc (#5665)
gnapse Apr 11, 2025
01888d9
feat (provider/elevenlabs): add transcription provider (#5643)
haydenbleasel Apr 11, 2025
bdfd0c6
Version Packages (#5694)
github-actions[bot] Apr 11, 2025
0c67917
fix(docs): fix transcription typo (#5695)
haydenbleasel Apr 12, 2025
beef951
feat: add speech synthesis with `experimental_generateSpeech` (#5649)
haydenbleasel Apr 12, 2025
f4f672e
chore (github): switch from bugs/features to support requests in issu…
lgrammel Apr 12, 2025
89b0eed
chore (ci): enable v5 github actions (even on main) (#5706)
lgrammel Apr 12, 2025
9cebe48
chore (providers/xai): update grok-3 model aliases (#5646)
samdenty Apr 12, 2025
3c26c55
feat(providers/azure): add transcribe (#5722)
haydenbleasel Apr 13, 2025
74688db
feat(providers/groq): add transcribe (#5716)
haydenbleasel Apr 13, 2025
bd41167
fix(ai/core): properly handle custom separator in provider registry (…
anatolzak Apr 13, 2025
ebeeb32
fix(providers/xai): edit supported models for structured output (#5715)
mxzinke Apr 14, 2025
47bd16d
Version Packages (#5705)
github-actions[bot] Apr 14, 2025
a7cb932
feat(providers/revai): add transcribe (#5730)
haydenbleasel Apr 14, 2025
69e8344
feat(providers/hume): add speech (#5727)
haydenbleasel Apr 14, 2025
a609a66
Version Packages (#5742)
github-actions[bot] Apr 14, 2025
0d7291a
feat(providers/lmnt): add speech (#5726)
haydenbleasel Apr 14, 2025
b5c9cd4
fix (provider/openai-compatible): change tool_call type schema to nu…
lgrammel Apr 14, 2025
4019639
Version Packages (#5752)
github-actions[bot] Apr 14, 2025
3eeb27f
feat(providers/deepgram): add transcribe (#5721)
haydenbleasel Apr 14, 2025
575339f
feat (providers/openai): add gpt-4.1 models (#5764)
shaper Apr 14, 2025
2ec40af
Version Packages (#5763)
github-actions[bot] Apr 14, 2025
f4f3945
fix (ai/core): filter out empty content/text assistant messages (#5767)
iteratetograceness Apr 15, 2025
e6e1cd9
feat(providers/gladia): add transcribe (#5720)
haydenbleasel Apr 15, 2025
8e5cbb7
Version Packages (#5782)
github-actions[bot] Apr 15, 2025
eaca8c1
docs: move gladia provider (#5790)
nicoalbanese Apr 15, 2025
6e8a73b
feat(providers/fal): add transcribe (#5718)
haydenbleasel Apr 16, 2025
75b9849
fix(provider/openai): update temperature handling for all search prev…
Sma1lboy Apr 16, 2025
2549660
Version Packages (#5798)
github-actions[bot] Apr 16, 2025
980141c
fix (openai): structured output support for responses api model (#5809)
iteratetograceness Apr 16, 2025
8d187f5
Version Packages (#5810)
github-actions[bot] Apr 16, 2025
b69a253
fix(utils/detect-mimetype): add support for detecting id3 tags (#5737)
haydenbleasel Apr 16, 2025
98d954e
feat (providers/openai): add o3 and o4-mini models (#5811)
nicoalbanese Apr 16, 2025
79b6397
Version Packages (#5812)
github-actions[bot] Apr 16, 2025
bd6e457
feat (provider/openai): o4 updates for responses api (#5826)
lgrammel Apr 17, 2025
1bdbabd
Version Packages (#5827)
github-actions[bot] Apr 17, 2025
033f445
fix (provider/cohere): tool calling (#5836)
lgrammel Apr 17, 2025
1f6aba3
Version Packages (#5837)
github-actions[bot] Apr 17, 2025
d55df31
chore (ci): enable turbo concurrency for testing (#5839) (#5840)
lgrammel Apr 17, 2025
7206b1f
fix (examples): avoid mixed message types in `use-chat-streamdata-mul…
iteratetograceness Apr 17, 2025
c56331d
feat (providers/google): add thinking config to provider options (#5842)
shaper Apr 18, 2025
aad8d45
Version Packages (#5853)
github-actions[bot] Apr 18, 2025
5379cc9
fix(ai/mcp-stdio): make `createChildProcess` synchronous to prevent s…
timjuenemann Apr 20, 2025
487a1c0
fix (providers/fal): improve model compatibility (#5855)
shaper Apr 21, 2025
f90feca
Version Packages (#5861)
github-actions[bot] Apr 21, 2025
ab08c97
fix (docs): fix valibotSchema import (#5865)
lgrammel Apr 21, 2025
13492fe
fix(providers/xai): return actual usage when streaming instead of NaN…
samdenty Apr 21, 2025
59e0fcd
Version Packages (#5874)
github-actions[bot] Apr 21, 2025
5b91c6a
fix (docs): fix OpenRouter code examples (#5876)
8enSmith Apr 22, 2025
ca7bce3
feat (providers/openai): add support for reasoning summaries (#5906)
shaper Apr 23, 2025
16e6dd0
Version Packages (#5907)
github-actions[bot] Apr 23, 2025
a2f6c80
chore (automation): enforce `patch` bumps in `.changeset/*.md` files …
gr2m Apr 23, 2025
6dff8d8
docs: update chat-with-pdf page to include updated provider informati…
maxwiseman Apr 23, 2025
5d09f78
fix (docs): fix typo (#5914)
dciccale Apr 23, 2025
cb05e9c
feat(providers/assemblyai): add transcribe (#5697)
haydenbleasel Apr 23, 2025
17aec7a
Revert "chore (automation): enforce `patch` bumps in `.changeset/*.md…
lgrammel Apr 23, 2025
6183b08
feat (providers/google): Add taskType support for Text Embedding Mode…
habeebmoosa Apr 23, 2025
957408b
fix (docs): fix svelte import (#5920)
lgrammel Apr 23, 2025
4d3ce7b
feat (docs): Add docs for Cloudflare AI Gateway provider (#5884)
G4brym Apr 23, 2025
3c2850f
Version Packages (#5918)
github-actions[bot] Apr 23, 2025
d4f53b9
docs: add example of sending custom metadata in middleware (#5910)
nicoalbanese Apr 23, 2025
b217142
chore (automation): enforce `patch` bumps in `.changeset/*.md files` …
gr2m Apr 23, 2025
23571c9
feat(providers/xai): add reasoningEffort option (#5926)
samdenty Apr 23, 2025
64e7554
Version Packages (#5931)
github-actions[bot] Apr 23, 2025
15b8bb8
chore (automation): skip changeset validation if no `.changeset/*.md`…
gr2m Apr 23, 2025
74cd391
feat (providers/openai): support gpt-image-1 image generation (#5938)
shaper Apr 23, 2025
c39ad25
Version Packages (#5940)
github-actions[bot] Apr 23, 2025
baa1988
chore (automation): assign team pull requests to author (#5844) (#5930)
gr2m Apr 24, 2025
ab69574
docs: update image detail terminology and fix broken documentation li…
suekou Apr 24, 2025
137e3fa
docs(providers): fix minor errors in Azure and Bedrock docs (#5943)
Rahul-Lashkari Apr 24, 2025
300b7a5
chore: improve pull request template (#5957)
lgrammel Apr 24, 2025
25d4760
fix (docs): correct example for gpt-image-1 provider options (#5968)
shaper Apr 24, 2025
3cabda9
feat (providers/openai): add gpt-image-1 model id to image settings (…
shaper Apr 25, 2025
47b7e4d
fix (docs): clarify reasoningSummary support and update examples (#5967)
liby Apr 25, 2025
278adc0
Version Packages (#5979)
github-actions[bot] Apr 25, 2025
0432959
feat (ai): add experimental prepareStep callback to generateText (#5985)
lgrammel Apr 25, 2025
79c8c57
Version Packages (#5986)
github-actions[bot] Apr 25, 2025
8a592c2
docs: add Browserless.io documentation link to tools list (#5830)
millerphp Apr 25, 2025
857d6cd
chore (provider/friendli): remove outdated model entry for `meta-llam…
minpeter Apr 25, 2025
dd5450e
feat(provider/openai): add o3 & o4-mini with developer systemMessageM…
dha-aa Apr 25, 2025
cec9f3f
Version Packages (#6001)
github-actions[bot] Apr 25, 2025
f28be14
feat(docs): add Letta community provider (#5904)
4shub Apr 25, 2025
8d7f355
docs: remove Azure web search documentation (#6012)
nicoalbanese Apr 28, 2025
96e2a3e
docs: Add Next.js v14 configuration requirements to LangSmith docs (#…
suekou Apr 28, 2025
8781e61
feat (provider/perplexity): add sonar-deep-research model (#5996)
jhsu Apr 28, 2025
1682a6a
Version Packages (#6021)
github-actions[bot] Apr 28, 2025
c695a7e
feat (provider/google): add new gemini models (#6023)
samdenty Apr 28, 2025
a85ae99
feat (provider/google-vertex): add imagen-3.0-generate-002 (#6024)
samdenty Apr 28, 2025
d866921
Version Packages (#6025)
github-actions[bot] Apr 28, 2025
77b2097
fix(append): support Message.experimental_attachments (#6044)
samdenty Apr 29, 2025
62181ef
fix(react-native): support experimental_attachments without FileList …
samdenty Apr 29, 2025
1d9a12d
Version Packages (#6048)
github-actions[bot] Apr 29, 2025
46cb332
chore (ai/mcp): add `assertCapability` method to experimental MCP cli…
iteratetograceness Apr 29, 2025
d4aa35e
core (ai/mcp): update experimental MCP client documentation for Strea…
iteratetograceness Apr 30, 2025
1ed3755
fix (ai): don't publish mcp-stdio TypeScript files (#6026)
christian-bromann Apr 30, 2025
8b389ae
feat(docs): add Weave observability provider (#6029)
zbirenbaum Apr 30, 2025
5caac29
fix(providers/openai): zod parse error with function (#6074)
samdenty Apr 30, 2025
e69fb20
Version Packages (#6050)
github-actions[bot] Apr 30, 2025
6c59ae7
feat (ui/react): support resuming an ongoing stream (#6052)
jeremyphilemon May 1, 2025
560a070
feat (docs): add Sarvam community provider (#6079)
Mrinank-Bhowmick May 1, 2025
255d52b
Version Packages (#6088)
github-actions[bot] May 1, 2025
23acf65
fix (docs): update formatting in useChat reference docs (#6099)
jeremyphilemon May 1, 2025
fd7c938
feat (docs): add Dify community provider (#4084) (#6067)
warmwind May 2, 2025
845080d
chore: update references to use ai-sdk.dev (#6076)
nicoalbanese May 2, 2025
2afd354
fix(providers/google): accept nullish in safetyRatings (#6124)
samdenty May 5, 2025
5ce269e
Version Packages (#6163)
github-actions[bot] May 6, 2025
a295521
feat(message-validator): include more details in error messages (#6133)
samdenty May 6, 2025
0ca6f2f
feat(providers/google): add gemini-2.5-pro-preview-05-06 (#6178)
samdenty May 6, 2025
c17860a
Version Packages (#6171)
github-actions[bot] May 6, 2025
9cecd28
fix (docs): update Laminar observability provider (#6170)
dinmukhamedm May 7, 2025
2b55a13
fix (docs): typo (#6164)
kathayl May 7, 2025
d87b9d1
fix(provider-utils): fix SSE parser bug (CRLF) (#6197)
twxia May 7, 2025
f3487a3
Version Packages (#6199)
github-actions[bot] May 7, 2025
7765a71
chore (docs): update code snippets to handle race condition when resu…
jeremyphilemon May 8, 2025
b54cb59
fix (ai-sdk/vue): status reactivity (#6234)
nicoalbanese May 9, 2025
396d013
Version Packages (#6249)
github-actions[bot] May 9, 2025
d79f373
fix (docs): mcpClient.tools() need to await (#6186)
georgezouq May 10, 2025
fe24216
feat(providers/google): Add reasoning token output support (#6261)
Und3rf10w May 11, 2025
4b2e1b0
feat(providers/google): Add reasoning token output support (#6284)
lgrammel May 12, 2025
6cd23c0
Version Packages (#6270)
github-actions[bot] May 12, 2025
a149b66
fix (docs): Laminar observability - add note on next.config (#6248)
dinmukhamedm May 13, 2025
c7aa165
chore (github): add version section to support issue template (#6315)
lgrammel May 14, 2025
14c3549
Add Patronus (#6311)
snigdhabanda May 14, 2025
c97ae1a
docs: add v5 alpha announcement (#6344)
nicoalbanese May 16, 2025
bdd06b5
fix (docs): update alpha (#6356)
nicoalbanese May 16, 2025
ed0ebeb
fix (telemetry): serialize UInt8Arrays as base64 for inner telemetry …
dinmukhamedm May 17, 2025
05c2da5
Version Packages (#6376)
github-actions[bot] May 17, 2025
48ef311
chore: upgrade to pnpm 10 (#6395)
lgrammel May 20, 2025
42e37fb
feat (providers/vercel): initial vercel provider (#6419)
ctate May 22, 2025
8fd57a4
Version Packages (#6423)
github-actions[bot] May 22, 2025
f64f4f0
feat (providers/anthropic): add claude v4 models (#6429)
jeremyphilemon May 22, 2025
5fef22a
Version Packages (#6431)
github-actions[bot] May 22, 2025
9b09f85
add claude 4 guide (#6430)
nicoalbanese May 22, 2025
2e6e5d3
feat(fal): support kontext model (#6549)
nicoalbanese May 30, 2025
cc03e10
ci: fix broken assign-team-pr workflow (#6567) (#6571)
gr2m Jun 1, 2025
f6d6f13
Version Packages (#6551)
github-actions[bot] Jun 2, 2025
05b8324
feat(provider/amazon-bedrock): add Claude 4 model ids (#6441)
huanshenyi Jun 2, 2025
f262012
fix (provider/google): prevent error when thinking signature is used …
lgrammel Jun 3, 2025
81ef251
Version Packages (#6580)
github-actions[bot] Jun 3, 2025
0235765
docs: update v5 announcement page (#6599)
nicoalbanese Jun 3, 2025
65e042a
docs: update google provider docs for implicit caching (#6656)
nicoalbanese Jun 6, 2025
26e7067
Feat/docs add requesty ai provider (#6660)
Thibault00 Jun 10, 2025
0c97722
Add Smithery to tool documentation (#6297)
calclavia Jun 16, 2025
d3f98a0
chore: update v5 beta announcement page on main (#6850)
nicoalbanese Jun 24, 2025
3ac547c
chore: setup v4 branch ci (#6921)
lgrammel Jun 30, 2025
d532ac3
Support `additionalProperties` in open api schema (#5626)
tjenkinson Jun 30, 2025
08ee85d
feat(providers/google): Add support for Gemini 2.5 Pro and Gemini 2.5…
CastaChick Jun 30, 2025
59c5176
fix: correct Amazon Bedrock reasoning provider option syntax (#5773)
brianprost Jul 1, 2025
8876ce3
Version Packages (#6922)
github-actions[bot] Jul 1, 2025
ce1625d
fix (provider/google): removes `additionalProperties` field from sche…
himanshusinghs Jul 1, 2025
ee10c10
Version Packages (#6957)
github-actions[bot] Jul 1, 2025
aeaf1cd
fix(google): add missing systemInstruction in object-tool mode (#6966)
dancer Jul 1, 2025
f56753b
Version Packages (#6967)
github-actions[bot] Jul 2, 2025
f470ce0
Add Vercel SDK Provider list (#6863) (#6963)
nicoalbanese Jul 2, 2025
2a8a853
feat(openai-compatible): passing config to chat models (#6849)
samurai00 Jul 2, 2025
90bdafa
docs: add guides to cookbook (#7026) (#7030)
nicoalbanese Jul 4, 2025
c1eac27
docs: remove guides from docs (#7027) (#7031)
nicoalbanese Jul 4, 2025
c3f5106
fix (provider/openai): handle responses api errors (#7091)
dancer Jul 7, 2025
382b510
Version Packages (#6994)
github-actions[bot] Jul 7, 2025
a288694
feat(ai): Expose provider metadata as an attribute on exported OTEL …
dancer Jul 7, 2025
5f5e474
Version Packages (#7104)
github-actions[bot] Jul 7, 2025
7687af8
fix(amazon bedrock): reasoning configuration support (#7231)
dancer Jul 11, 2025
37d93f4
fix (ai): throw error for v2 models or string model ids (#7282)
lgrammel Jul 14, 2025
88ce308
Version Packages (#7234)
github-actions[bot] Jul 14, 2025
849af1c
feat(ai/v4): Record tool call errors on tool call spans in `generateT…
AbhiPrasad Jul 15, 2025
d383c37
Version Packages (#7299)
github-actions[bot] Jul 15, 2025
919ce07
bugfix(openai): Zod schema validation for `choices[].delta.tool_call…
cdxker Jul 15, 2025
fea995c
Version Packages (#7310)
github-actions[bot] Jul 15, 2025
c38ff35
feat (providers/hyperbolic): add mdx for hyperbolic provider (#7292)
Am64r Jul 21, 2025
7396dfc
docs: fix placement of hyperbolic (#7436)
nicoalbanese Jul 21, 2025
c7e2cf5
docs: fix browserbase link (#7438) (#7439)
nicoalbanese Jul 21, 2025
9df5551
docs: add troubleshooting for zod v4 issues (#7505)
nicoalbanese Jul 24, 2025
50b794e
docs: remove beta flags and fix rag guide (#7619)
nicoalbanese Jul 29, 2025
5b20d4b
feat (provider/openai): gpt 5 support (#7874)
lgrammel Aug 8, 2025
7775823
Version Packages (#7875)
github-actions[bot] Aug 8, 2025
60f9b7c
feat: add onToolCallMaxTokensFinish to streamText
xinyao27 Mar 2, 2025
045ba1a
feat: patch
xinyao27 Mar 2, 2025
7b8efce
feat: no build
xinyao27 Mar 2, 2025
0004ef6
feat: add tool call max tokens finish stream part
xinyao27 Mar 2, 2025
9eb8f05
feat: enhance tool call max tokens finish with tool invocation details
xinyao27 Mar 2, 2025
044d0d3
refactor: standardize tool call max tokens finish event type
xinyao27 Mar 2, 2025
64d987e
fix: patched image tool call
NisargIO Mar 4, 2025
8167b60
fix(authropic): remove tag
xinyao27 Mar 4, 2025
d574df0
feat: remove logOriginalPrompt
xinyao27 Mar 6, 2025
ec43f38
feat: add support for 'parts' in UI-specific message detection
xinyao27 Mar 7, 2025
d692eba
feat: add provider options support in core message conversion
xinyao27 Mar 7, 2025
226bd18
feat: add vertex_event type to anthropic messages schema and improve …
xinyao27 Mar 17, 2025
36bf0ec
refactor: simplify tool invocation result handling and remove exhaust…
xinyao27 Mar 18, 2025
ce7fd9f
feat: add provider metadata support in chat API and data stream handling
xinyao27 Apr 2, 2025
570075f
feat: enhance tool result processing and improve image URL extraction…
xinyao27 Apr 2, 2025
8179c1e
feat: add handling for vertex_event type and improve error reporting …
xinyao27 Apr 19, 2025
366df0e
feat: improve image URL handling and refine tool result filtering in …
xinyao27 Apr 19, 2025
462f087
feat: add default case for unhandled message parts in chat message co…
xinyao27 Apr 20, 2025
80ceefc
feat: enhance chat message conversion to support OpenAI and Azure pro…
xinyao27 Apr 20, 2025
151e6c3
fix: update image MIME type detection to use a more robust method for…
xinyao27 Apr 21, 2025
c4858d5
refactor: streamline user message handling for tool responses in chat…
xinyao27 Apr 22, 2025
cb0798e
feat: implement caching mechanism for user content in Google Generati…
xinyao27 May 3, 2025
923867d
feat: extend tool result filtering in prompt conversion to include 'v…
xinyao27 May 11, 2025
4afe27a
feat: extend tool result filtering in prompt conversion to include 'd…
xinyao27 May 11, 2025
7cd94f6
feat: extend tool result filtering in prompt conversion to include 'r…
xinyao27 May 11, 2025
c72e278
fix: step / error / generate_image
xinyao27 Jun 5, 2025
81de40c
feat: auto anthropic cache control
xinyao27 Jun 7, 2025
d197f57
fix: ensure cache control is applied correctly for the last message i…
xinyao27 Jun 9, 2025
d3ab610
feat: add disable_parallel_tool_use option to tool choices and provid…
xinyao27 Jun 21, 2025
2a34ab7
feat: implement non-blocking tool call execution with error handling …
xinyao27 Jun 23, 2025
37a49ae
fix: prevent processing of aborted requests in chat message updates
xinyao27 Jun 23, 2025
a38837d
fix: ensure valid message structure in Google Generative AI conversion
xinyao27 Jun 25, 2025
fc46460
fix: remove read_file
xinyao27 Jun 27, 2025
e560e3b
docs: patch notes
xinyao27 Jun 28, 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
  •  
  •  
  •  
36 changes: 0 additions & 36 deletions .github/ISSUE_TEMPLATE/1.bug_report.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/1.support_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Support Request
description: Report a bug, feature request or other issue with the AI SDK.
labels: ['support']
body:
- type: markdown
attributes:
value: |
This template is ask for help regarding an issue that could be a bug or a feature request.
- type: textarea
attributes:
label: Description
description: A detailed description. Please include relevant information such as reproduction steps, code examples, and any other information that might help us understand the issue.
placeholder: |
Reproduction steps, code examples, background, etc...
validations:
required: true
- type: textarea
attributes:
label: AI SDK Version
description: Which version of the AI SDK are you using?
placeholder: |
Examples:
- ai: 4.1.2
- @ai-sdk/react: 2.1.0
- @ai-sdk/openai: 0.5.2
validations:
required: false
29 changes: 0 additions & 29 deletions .github/ISSUE_TEMPLATE/2.feature_request.yml

This file was deleted.

51 changes: 51 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!--
Welcome to contributing to AI SDK! We're excited to see your changes.
We suggest you read the following contributing guide we've created before submitting:
https://github.com/vercel/ai/blob/main/CONTRIBUTING.md
-->

## Background

<!-- Why was this change necessary? -->

## Summary

<!-- What did you change? -->

## Verification

<!--
For features & bugfixes.
Please explain how you *manually* verified that the change works end-to-end as expected (independent of automated tests).
Remove the section if it's not needed (e.g. for docs).
-->

## Tasks

<!--
This task list is intended to help you keep track of what you need to do.
Feel free to add tasks and remove unnecessary tasks as needed.
Please check if the PR fulfills the following requirements:
-->

- [ ] 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

<!--
Feel free to mention things not covered by this PR that can be done in future PRs.
Remove the section if it's not needed.
-->

## Related Issues

<!--
List related issues here, e.g. "Fixes #1234".
Remove the section if it's not needed.
-->
137 changes: 137 additions & 0 deletions .github/workflows/actions/verify-changesets/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
import fs from 'node:fs/promises';

const BYPASS_LABELS = ['minor', 'major'];

// check if current file is the entry point
if (import.meta.url.endsWith(process.argv[1])) {
// https://docs.github.com/en/webhooks/webhook-events-and-payloads#pull_request
const pullRequestEvent = JSON.parse(
await fs.readFile(process.env.GITHUB_EVENT_PATH, 'utf-8'),
);

try {
const message = await verifyChangesets(
pullRequestEvent,
process.env,
fs.readFile,
);
await fs.writeFile(
process.env.GITHUB_STEP_SUMMARY,
`## Changeset verification passed ✅\n\n${message || ''}`,
);
} catch (error) {
// write error to summary
console.error(error.message);
await fs.writeFile(
process.env.GITHUB_STEP_SUMMARY,
`## Changeset verification failed ❌

${error.message}`,
);

if (error.path) {
await fs.appendFile(
process.env.GITHUB_STEP_SUMMARY,
`\n\nFile: \`${error.path}\``,
);
}

if (error.content) {
await fs.appendFile(
process.env.GITHUB_STEP_SUMMARY,
`\n\n\`\`\`yaml\n${error.content}\n\`\`\``,
);
}

process.exit(1);
}
}

export async function verifyChangesets(
event,
env = process.env,
readFile = fs.readFile,
) {
// Skip check if pull request has "minor-release" label
const byPassLabel = event.pull_request.labels.find(label =>
BYPASS_LABELS.includes(label.name),
);
if (byPassLabel) {
return `Skipping changeset verification - "${byPassLabel.name}" label found`;
}

// Iterate through all changed .changeset/*.md files
for (const path of env.CHANGED_FILES.trim().split(' ')) {
// ignore README.md file
if (path === '.changeset/README.md') continue;

// Check if the file is a .changeset file
if (!/^\.changeset\/[a-z-]+\.md/.test(path)) {
throw Object.assign(new Error(`Invalid file - not a .changeset file`), {
path,
});
}

// find frontmatter
const content = await readFile(`../../../../${path}`, 'utf-8');
const result = content.match(/---\n([\s\S]+?)\n---/);
if (!result) {
throw Object.assign(
new Error(`Invalid .changeset file - no frontmatter found`),
{
path,
content,
},
);
}

const [frontmatter] = result;

// Find version bump by package. `frontmatter` looks like this:
//
// ```yaml
// 'ai': patch
// '@ai-sdk/provider': patch
// ```
const lines = frontmatter.split('\n').slice(1, -1);
const versionBumps = {};
for (const line of lines) {
const [packageName, versionBump] = line.split(':').map(s => s.trim());
if (!packageName || !versionBump) {
throw Object.assign(
new Error(`Invalid .changeset file - invalid frontmatter`, {
path,
content,
}),
);
}

// Check if packageName is already set
if (versionBumps[packageName]) {
throw Object.assign(
new Error(
`Invalid .changeset file - duplicate package name "${packageName}"`,
),
{ path, content },
);
}

versionBumps[packageName] = versionBump;
}

// check if any of the version bumps are not "patch"
const invalidVersionBumps = Object.entries(versionBumps).filter(
([, versionBump]) => versionBump !== 'patch',
);

if (invalidVersionBumps.length > 0) {
throw Object.assign(
new Error(
`Invalid .changeset file - invalid version bump (only "patch" is allowed, see https://ai-sdk.dev/docs/migration-guides/versioning). To bypass, add one of the following labels: ${BYPASS_LABELS.join(', ')}`,
),

{ path, content },
);
}
}
}
8 changes: 8 additions & 0 deletions .github/workflows/actions/verify-changesets/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "verify-changesets-action",
"private": true,
"type": "module",
"scripts": {
"test": "node --test test.js"
}
}
Loading