@ai-sdk/provider-utils 4.0.22 → 4.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -4
- package/src/load-api-key.ts +1 -1
- package/src/load-setting.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @ai-sdk/provider-utils
|
|
2
2
|
|
|
3
|
+
## 4.0.24
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a7f3c72: trigger release for all packages after provenance setup
|
|
8
|
+
- Updated dependencies [a7f3c72]
|
|
9
|
+
- @ai-sdk/provider@3.0.9
|
|
10
|
+
|
|
11
|
+
## 4.0.23
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 6247886: chore(provider-utils,google): fix grammar errors in error and warning messages
|
|
16
|
+
|
|
3
17
|
## 4.0.22
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -678,7 +678,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
|
|
|
678
678
|
}
|
|
679
679
|
|
|
680
680
|
// src/version.ts
|
|
681
|
-
var VERSION = true ? "4.0.
|
|
681
|
+
var VERSION = true ? "4.0.24" : "0.0.0-test";
|
|
682
682
|
|
|
683
683
|
// src/get-from-api.ts
|
|
684
684
|
var getOriginalFetch = () => globalThis.fetch;
|
|
@@ -826,7 +826,7 @@ function loadApiKey({
|
|
|
826
826
|
}
|
|
827
827
|
if (typeof process === "undefined") {
|
|
828
828
|
throw new import_provider5.LoadAPIKeyError({
|
|
829
|
-
message: `${description} API key is missing. Pass it using the '${apiKeyParameterName}' parameter. Environment variables
|
|
829
|
+
message: `${description} API key is missing. Pass it using the '${apiKeyParameterName}' parameter. Environment variables are not supported in this environment.`
|
|
830
830
|
});
|
|
831
831
|
}
|
|
832
832
|
apiKey = process.env[environmentVariableName];
|
|
@@ -879,7 +879,7 @@ function loadSetting({
|
|
|
879
879
|
}
|
|
880
880
|
if (typeof process === "undefined") {
|
|
881
881
|
throw new import_provider6.LoadSettingError({
|
|
882
|
-
message: `${description} setting is missing. Pass it using the '${settingName}' parameter. Environment variables
|
|
882
|
+
message: `${description} setting is missing. Pass it using the '${settingName}' parameter. Environment variables are not supported in this environment.`
|
|
883
883
|
});
|
|
884
884
|
}
|
|
885
885
|
settingValue = process.env[environmentVariableName];
|