@demicodes/provider-anthropic-api 0.1.0 → 0.2.1

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/dist/index.d.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Provider, ProviderModel, ProviderModelList } from "@demicodes/provider";
2
-
3
2
  //#region src/models.d.ts
4
3
  interface AnthropicApiModelOptions {
5
4
  id: string;
package/dist/index.mjs CHANGED
@@ -436,6 +436,10 @@ function userContentToAnthropic(content) {
436
436
  type: "text",
437
437
  text: `[document:${block.source.fileName} ${block.source.mediaType}]`
438
438
  }];
439
+ if (block.type === "video") return [{
440
+ type: "text",
441
+ text: "[video]"
442
+ }];
439
443
  if (block.source.type === "url") return [{
440
444
  type: "text",
441
445
  text: `[image:${block.source.url}]`
@@ -456,6 +460,10 @@ function toolResultContentToAnthropic(output) {
456
460
  type: "text",
457
461
  text: block.text
458
462
  };
463
+ if (block.type === "video") return {
464
+ type: "text",
465
+ text: `[video:${block.source.mediaType}]`
466
+ };
459
467
  return {
460
468
  type: "image",
461
469
  source: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@demicodes/provider-anthropic-api",
3
3
  "description": "Anthropic API provider adapter for Demi.",
4
- "version": "0.1.0",
4
+ "version": "0.2.1",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "exports": {
@@ -12,9 +12,9 @@
12
12
  }
13
13
  },
14
14
  "dependencies": {
15
- "@demicodes/core": "workspace:*",
16
- "@demicodes/provider": "workspace:*",
17
- "@demicodes/utils": "workspace:*"
15
+ "@demicodes/core": "^0.2.1",
16
+ "@demicodes/provider": "^0.2.1",
17
+ "@demicodes/utils": "^0.2.1"
18
18
  },
19
19
  "license": "Apache-2.0",
20
20
  "main": "./dist/index.mjs",