@ai-sdk/anthropic 3.0.0-beta.32 → 3.0.0-beta.34
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 +13 -0
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -5,12 +5,13 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
generateId as generateId2,
|
|
7
7
|
loadApiKey,
|
|
8
|
+
loadOptionalSetting,
|
|
8
9
|
withoutTrailingSlash,
|
|
9
10
|
withUserAgentSuffix
|
|
10
11
|
} from "@ai-sdk/provider-utils";
|
|
11
12
|
|
|
12
13
|
// src/version.ts
|
|
13
|
-
var VERSION = true ? "3.0.0-beta.
|
|
14
|
+
var VERSION = true ? "3.0.0-beta.34" : "0.0.0-test";
|
|
14
15
|
|
|
15
16
|
// src/anthropic-messages-language-model.ts
|
|
16
17
|
import {
|
|
@@ -3313,7 +3314,12 @@ var anthropicTools = {
|
|
|
3313
3314
|
// src/anthropic-provider.ts
|
|
3314
3315
|
function createAnthropic(options = {}) {
|
|
3315
3316
|
var _a;
|
|
3316
|
-
const baseURL = (_a = withoutTrailingSlash(
|
|
3317
|
+
const baseURL = (_a = withoutTrailingSlash(
|
|
3318
|
+
loadOptionalSetting({
|
|
3319
|
+
settingValue: options.baseURL,
|
|
3320
|
+
environmentVariableName: "ANTHROPIC_BASE_URL"
|
|
3321
|
+
})
|
|
3322
|
+
)) != null ? _a : "https://api.anthropic.com/v1";
|
|
3317
3323
|
const getHeaders = () => withUserAgentSuffix(
|
|
3318
3324
|
{
|
|
3319
3325
|
"anthropic-version": "2023-06-01",
|