Skip to content

Commit 560da23

Browse files
committed
Merge remote-tracking branch 'origin/v5' into cohere-provider-options
* origin/v5: (36 commits) fix (provider): remove deprecated `Experimental_LanguageModelV2Middleware` (#5775) fix (ai): remove deprecated `options.throwErrorForEmptyVectors` from `cosineSimilarity()` (#5772) fix (ai/core): filter out empty content/text assistant messages (#5767) (#5783) fix (ai): remove deprecated `CoreTool*` types (#5768) chore: refactor text parts (spec) (#5759) feat(embedding-model-v2): add response body field (#5700) feat(embedding-model-v2): add providerOptions (#5698) chore: refactor reasoning parts (spec) (#5756) chore: update .gitignore (#5755) chore: refactor source parts (spec) (#5753) chore: refactor file parts (spec) (#5750) chore: refactor tool call and tool call delta parts (spec) (#5746) fix(providers/xai): edit supported models for structured output (#5715) (#5741) chore (ai): remove provider re-exports (#5734) chore (provider): extract shared provider options and metadata (spec) (#5733) fix(ai/core): properly handle custom separator in provider registry (#5713) (#5732) chore (providers/xai): update grok-3 model aliases (#5646) chore(embedding-model-v2): rename rawResponse to response (#5699) chore(providers/mistral): convert to providerOptions (#5675) chore: refactor file towards source pattern (spec) (#5709) ...
2 parents 9fd50ea + 7182d14 commit 560da23

File tree

442 files changed

+6980
-4902
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

442 files changed

+6980
-4902
lines changed

.changeset/angry-kings-dance.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ai-sdk/mistral': patch
3+
---
4+
5+
chore(providers/mistral): convert to providerOptions

.changeset/angry-plants-sin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ai-sdk/amazon-bedrock': patch
3+
---
4+
5+
chore(providers/bedrock): convert to providerOptions

.changeset/big-panthers-judge.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ai-sdk/openai': patch
3+
---
4+
5+
chore(providers/openai): convert to providerOptions

.changeset/brown-poems-boil.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'ai': patch
3+
---
4+
5+
chore (ai): remove provider re-exports

.changeset/cuddly-kangaroos-double.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ai-sdk/amazon-bedrock': patch
3+
---
4+
5+
chore(providers/bedrock): use camelCase for providerOptions

.changeset/eighty-seals-search.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ai-sdk/xai': patch
3+
---
4+
5+
fix(providers/xai): edit supported models for structured output

.changeset/heavy-pens-destroy.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@ai-sdk/openai-compatible': patch
3+
'@ai-sdk/amazon-bedrock': patch
4+
'@ai-sdk/google-vertex': patch
5+
'@ai-sdk/togetherai': patch
6+
'@ai-sdk/deepinfra': patch
7+
'@ai-sdk/fireworks': patch
8+
'@ai-sdk/provider': patch
9+
'@ai-sdk/mistral': patch
10+
'@ai-sdk/cohere': patch
11+
'@ai-sdk/google': patch
12+
'@ai-sdk/openai': patch
13+
'ai': patch
14+
---
15+
16+
chore(embedding-model): add v2 interface

.changeset/hungry-bears-glow.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@ai-sdk/openai-compatible': patch
3+
'@ai-sdk/google-vertex': patch
4+
'@ai-sdk/provider': patch
5+
'@ai-sdk/mistral': patch
6+
'@ai-sdk/cohere': patch
7+
'@ai-sdk/google': patch
8+
'@ai-sdk/openai': patch
9+
---
10+
11+
feat(embedding-model-v2): add response body field

.changeset/itchy-cars-relax.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@ai-sdk/provider': major
3+
'ai': major
4+
---
5+
6+
chore: refactor file towards source pattern (spec)

.changeset/late-brooms-suffer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'ai': patch
3+
---
4+
5+
chore(ai/generateObject): simplify function signature

.changeset/light-rules-film.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'ai': patch
3+
---
4+
5+
fix (ai/core): refactor `toResponseMessages` to filter out empty string/content

.changeset/metal-insects-tease.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ai-sdk/provider': major
3+
---
4+
5+
chore: refactor reasoning parts (spec)

.changeset/neat-pillows-occur.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ai-sdk/provider': patch
3+
---
4+
5+
chore (provider): extract shared provider options and metadata (spec)

.changeset/new-vans-obey.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ai-sdk/provider': patch
3+
---
4+
5+
chore (provider): extract LanguageModelV2File

.changeset/odd-vans-suffer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ai-sdk/xai': patch
3+
---
4+
5+
chore (providers/xai): update grok-3 model aliases

.changeset/old-moons-kiss.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'ai': patch
3+
---
4+
5+
remove deprecated `CoreTool*` types

.changeset/pre.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,35 +57,52 @@
5757
},
5858
"changesets": [
5959
"afraid-moles-cross",
60+
"angry-plants-sin",
6061
"angry-poems-learn",
6162
"beige-ligers-kneel",
6263
"beige-penguins-greet",
64+
"big-panthers-judge",
6365
"chilled-queens-remember",
6466
"clean-numbers-cover",
6567
"cool-buckets-shout",
6668
"cuddly-icons-kick",
69+
"cuddly-kangaroos-double",
70+
"dull-candles-trade",
6771
"eleven-lobsters-rescue",
6872
"fix-env-mutation",
6973
"flat-plums-bake",
74+
"fluffy-pets-pump",
75+
"gentle-gorillas-mate",
7076
"green-deers-scream",
7177
"happy-kangaroos-roll",
7278
"huge-cloths-burn",
7379
"hungry-pets-hear",
80+
"late-brooms-suffer",
7481
"late-foxes-battle",
7582
"lemon-terms-hug",
83+
"little-zebras-suffer",
7684
"nasty-spiders-sparkle",
85+
"new-vans-obey",
86+
"nine-jars-hammer",
7787
"pink-deers-switch",
88+
"pretty-bikes-appear",
89+
"quick-toys-help",
7890
"selfish-rice-own",
7991
"seven-pens-itch",
8092
"silent-nails-taste",
8193
"smart-swans-drive",
8294
"smooth-mirrors-kneel",
95+
"strange-apricots-enjoy",
8396
"tall-rice-flash",
8497
"tender-buses-glow",
8598
"thick-chairs-remain",
99+
"thin-items-knock",
86100
"thin-numbers-shave",
87101
"tiny-deers-kick",
88102
"twelve-kids-travel",
103+
"unlucky-bobcats-wash",
104+
"violet-taxis-work",
105+
"wicked-flowers-study",
89106
"wild-candles-judge",
90107
"yellow-ligers-brake"
91108
]

.changeset/pretty-bikes-appear.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'ai': patch
3+
---
4+
5+
fix (ai/mcp): better support for zero-argument MCP tools

.changeset/pretty-jars-reflect.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ai-sdk/provider': major
3+
---
4+
5+
chore: refactor source parts (spec)

.changeset/quick-toys-help.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ai-sdk/provider': major
3+
---
4+
5+
chore (provider): allow both binary and base64 file content (spec)

.changeset/rotten-peaches-doubt.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ai-sdk/provider': major
3+
---
4+
5+
chore: refactor tool call and tool call delta parts (spec)

.changeset/rotten-walls-provide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ai-sdk/provider': major
3+
---
4+
5+
chore: refactor text parts (spec)

.changeset/serious-taxis-invent.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ai-sdk/provider': major
3+
---
4+
5+
chore: refactor file parts (spec)

.changeset/six-moose-know.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'ai': patch
3+
---
4+
5+
fix(ai/core): properly handle custom separator in provider registry

.changeset/strange-camels-decide.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@ai-sdk/openai-compatible': patch
3+
'@ai-sdk/google-vertex': patch
4+
'@ai-sdk/provider': patch
5+
'@ai-sdk/mistral': patch
6+
'@ai-sdk/cohere': patch
7+
'@ai-sdk/google': patch
8+
'@ai-sdk/openai': patch
9+
'ai': patch
10+
---
11+
12+
chore(embedding-model-v2): rename rawResponse to response

.changeset/tender-tables-trade.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ai-sdk/provider': patch
3+
---
4+
5+
feat(embedding-model-v2): add providerOptions

.changeset/tricky-hats-fly.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ai-sdk/provider': patch
3+
---
4+
5+
Remove `Experimental_LanguageModelV2Middleware` type

.changeset/tricky-zebras-cover.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'ai': patch
3+
---
4+
5+
Removed deprecated `options.throwErrorForEmptyVectors` from `cosineSimilarity()`. Since `throwErrorForEmptyVectors` was the only option the entire `options` argument was removed.
6+
7+
```diff
8+
- cosineSimilarity(vector1, vector2, options)
9+
+cosineSimilarity(vector1, vector2)
10+
```

.changeset/violet-taxis-work.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@ai-sdk/provider': major
3+
'ai': major
4+
---
5+
6+
chore: rename maxTokens to maxOutputTokens

.changeset/wicked-flowers-study.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@ai-sdk/anthropic': patch
3+
'@ai-sdk/provider': patch
4+
'@ai-sdk/google': patch
5+
'@ai-sdk/openai': patch
6+
'ai': patch
7+
---
8+
9+
feat(tool-calling): don't require the user to have to pass parameters

.github/ISSUE_TEMPLATE/1.bug_report.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Support Request
2+
description: Report a bug, feature request or other issue with the AI SDK.
3+
labels: ['support']
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
This template is ask for help regarding an issue that could be a bug or a feature request.
9+
- type: textarea
10+
attributes:
11+
label: Description
12+
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.
13+
placeholder: |
14+
Reproduction steps, code examples, background, etc...
15+
validations:
16+
required: true

.github/ISSUE_TEMPLATE/2.feature_request.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.gitignore

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
.DS_Store
2-
node_modules
3-
.turbo
4-
*.log
2+
.cache
3+
.env
54
.next
5+
.turbo
66
dist
77
dist-ssr
8-
*.local
9-
.env
10-
.cache
11-
server/dist
8+
examples/*/build
9+
node_modules
1210
public/dist
13-
.turbo
11+
server/dist
1412
test-results
13+
tsconfig.vitest-temp.json
14+
*.log
15+
*.local
1516
*.tsbuildinfo
16-
examples/*/build

content/cookbook/05-node/11-generate-text-with-chat-prompt.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { openai } from '@ai-sdk/openai';
1616

1717
const result = await generateText({
1818
model: openai('gpt-3.5-turbo'),
19-
maxTokens: 1024,
19+
maxOutputTokens: 1024,
2020
system: 'You are a helpful chatbot.',
2121
messages: [
2222
{

content/cookbook/05-node/12-generate-text-with-image-prompt.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { openai } from '@ai-sdk/openai';
1616

1717
const result = await generateText({
1818
model: openai('gpt-4-turbo'),
19-
maxTokens: 512,
19+
maxOutputTokens: 512,
2020
messages: [
2121
{
2222
role: 'user',
@@ -48,7 +48,7 @@ import fs from 'fs';
4848

4949
const result = await generateText({
5050
model: openai('gpt-4-turbo'),
51-
maxTokens: 512,
51+
maxOutputTokens: 512,
5252
messages: [
5353
{
5454
role: 'user',

0 commit comments

Comments
 (0)