Skip to content

Commit 6247886

Browse files
vercel-ai-sdk[bot]Ricardo-M-Lyujclaudeaayush-kapoor
authored
Backport: chore(provider-utils,google): fix grammar errors in error and warning messages (#14151)
This is an automated backport of #14124 to the release-v6.0 branch. FYI @Ricardo-M-L Co-authored-by: Ricardo-M-L <69202550+Ricardo-M-L@users.noreply.github.com> Co-authored-by: yuj <yuj@ztjzsoft.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Aayush Kapoor <83492835+aayush-kapoor@users.noreply.github.com> Co-authored-by: Aayush Kapoor <aayushkapoor34@gmail.com>
1 parent 674da61 commit 6247886

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.changeset/happy-pugs-tickle.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@ai-sdk/provider-utils": patch
3+
"@ai-sdk/google": patch
4+
---
5+
6+
chore(provider-utils,google): fix grammar errors in error and warning messages

packages/google/src/google-prepare-tools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export function prepareTools({
122122
type: 'unsupported',
123123
feature: `provider-defined tool ${tool.id}`,
124124
details:
125-
'The code execution tools is not supported with other Gemini models than Gemini 2.',
125+
'The code execution tool is not supported with other Gemini models than Gemini 2.',
126126
});
127127
}
128128
break;

packages/provider-utils/src/load-api-key.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function loadApiKey({
2323

2424
if (typeof process === 'undefined') {
2525
throw new LoadAPIKeyError({
26-
message: `${description} API key is missing. Pass it using the '${apiKeyParameterName}' parameter. Environment variables is not supported in this environment.`,
26+
message: `${description} API key is missing. Pass it using the '${apiKeyParameterName}' parameter. Environment variables are not supported in this environment.`,
2727
});
2828
}
2929

packages/provider-utils/src/load-setting.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function loadSetting({
3535
message:
3636
`${description} setting is missing. ` +
3737
`Pass it using the '${settingName}' parameter. ` +
38-
`Environment variables is not supported in this environment.`,
38+
`Environment variables are not supported in this environment.`,
3939
});
4040
}
4141

0 commit comments

Comments
 (0)