@weiliang0121/capix-model-provider 0.1.0 → 0.2.0

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.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +4 -3
package/README.md CHANGED
@@ -110,4 +110,4 @@ JSON 与 SSE 共用 `ModelUsage`:`promptTokens / completionTokens / totalToken
110
110
  - `ProviderError` 只含 code/message/可选 HTTP status,不保存上游正文、请求、headers、密钥或底层错误。宿主可注入 fetch;实现必须遵守 Fetch 取消与重定向语义。
111
111
  - `thinking` 是宿主显式配置的 DeepSeek 扩展。当前实现 Chat Completions 函数调用与文本;不承诺 Responses、Anthropic 原生协议、MCP、多模态或 strict beta。正式 Transcript 的消息角色不因此扩展。
112
112
 
113
- 仓库中的原生工具方案与离线验证记录保留设计和早期契约推演,不包含在此 npm 包中。完整协议参考 [Chat Completions](https://api-docs.deepseek.com/api/create-chat-completion/) 与 [SSE 标准](https://html.spec.whatwg.org/multipage/server-sent-events.html#event-stream-interpretation)。
113
+ 当前架构与限制见[原生工具调用](../../docs/native-tool-integration.md)。完整协议参考 [Chat Completions](https://api-docs.deepseek.com/api/create-chat-completion/) 与 [SSE 标准](https://html.spec.whatwg.org/multipage/server-sent-events.html#event-stream-interpretation)。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weiliang0121/capix-model-provider",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {
@@ -15,7 +15,7 @@
15
15
  "repository": {
16
16
  "type": "git",
17
17
  "url": "git+https://github.com/weiliang0121/capix.git",
18
- "directory": "server/model-provider"
18
+ "directory": "packages/model-provider"
19
19
  },
20
20
  "engines": {
21
21
  "node": ">=22.23.2"
@@ -34,6 +34,7 @@
34
34
  },
35
35
  "scripts": {
36
36
  "build": "tsc -p tsconfig.json",
37
- "typecheck": "tsc -p tsconfig.json --noEmit"
37
+ "typecheck": "tsc -p tsconfig.json --noEmit",
38
+ "test": "node ../../scripts/test/run.mjs --package ."
38
39
  }
39
40
  }