@aigne/anthropic 0.14.1-beta.4 → 0.14.1-beta.5

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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.14.1-beta.5](https://github.com/AIGNE-io/aigne-framework/compare/anthropic-v0.14.1-beta.4...anthropic-v0.14.1-beta.5) (2025-10-01)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * update deps compatibility in CommonJS environment ([#580](https://github.com/AIGNE-io/aigne-framework/issues/580)) ([a1e35d0](https://github.com/AIGNE-io/aigne-framework/commit/a1e35d016405accb51c1aeb6a544503a1c78e912))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @aigne/core bumped to 1.62.0-beta.4
16
+ * devDependencies
17
+ * @aigne/test-utils bumped to 0.5.54-beta.5
18
+
3
19
  ## [0.14.1-beta.4](https://github.com/AIGNE-io/aigne-framework/compare/anthropic-v0.14.1-beta.3...anthropic-v0.14.1-beta.4) (2025-10-01)
4
20
 
5
21
 
@@ -332,7 +332,7 @@ async function convertContent(content) {
332
332
  return Promise.all(content.map(async (item) => {
333
333
  if (item.type === "text")
334
334
  return { type: "text", text: item.text };
335
- const media_type = core_1.ChatModel.getMimeType(item.mimeType || item.filename || "");
335
+ const media_type = (await core_1.ChatModel.getMimeType(item.mimeType || item.filename || ""));
336
336
  switch (item.type) {
337
337
  case "url":
338
338
  return { type: "image", source: { type: "url", url: item.url } };
@@ -325,7 +325,7 @@ async function convertContent(content) {
325
325
  return Promise.all(content.map(async (item) => {
326
326
  if (item.type === "text")
327
327
  return { type: "text", text: item.text };
328
- const media_type = ChatModel.getMimeType(item.mimeType || item.filename || "");
328
+ const media_type = (await ChatModel.getMimeType(item.mimeType || item.filename || ""));
329
329
  switch (item.type) {
330
330
  case "url":
331
331
  return { type: "image", source: { type: "url", url: item.url } };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aigne/anthropic",
3
- "version": "0.14.1-beta.4",
3
+ "version": "0.14.1-beta.5",
4
4
  "description": "AIGNE Anthropic SDK for integrating with Claude AI models",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -37,7 +37,7 @@
37
37
  "dependencies": {
38
38
  "@anthropic-ai/sdk": "^0.63.0",
39
39
  "zod": "^3.25.67",
40
- "@aigne/core": "^1.62.0-beta.3",
40
+ "@aigne/core": "^1.62.0-beta.4",
41
41
  "@aigne/platform-helpers": "^0.6.3"
42
42
  },
43
43
  "devDependencies": {
@@ -46,7 +46,7 @@
46
46
  "npm-run-all": "^4.1.5",
47
47
  "rimraf": "^6.0.1",
48
48
  "typescript": "^5.9.2",
49
- "@aigne/test-utils": "^0.5.54-beta.4"
49
+ "@aigne/test-utils": "^0.5.54-beta.5"
50
50
  },
51
51
  "scripts": {
52
52
  "lint": "tsc --noEmit",