@easbot/local-model-sdk 0.1.3 → 0.1.7

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/README.en.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Local Model SDK
2
2
 
3
- Local model SDK based on Transformers.js + ONNX, supporting Language Model (text generation) and Embedding (text embedding) capabilities, fully compatible with AI SDK specifications.
3
+ Local model SDK based on Transformers.js + ONNX, supporting Language Model (text generation) and Embedding (text embedding) capabilities, fully compatible with AI SDK v3 specifications.
4
4
 
5
5
  ## Features
6
6
 
@@ -9,7 +9,7 @@ Local model SDK based on Transformers.js + ONNX, supporting Language Model (text
9
9
  - ✅ **Streaming Generation**: Real-time streaming text output
10
10
  - ✅ **Batch Processing**: Efficient batch embedding processing
11
11
  - ✅ **Model Caching**: Automatic model file cache management
12
- - ✅ **AI SDK Compatible**: Fully compatible with AI SDK v2 specification
12
+ - ✅ **AI SDK Compatible**: Fully compatible with AI SDK v3 specification
13
13
  - ✅ **TypeScript**: Complete type definition support
14
14
  - ✅ **Offline Operation**: No network required, fully local
15
15
 
@@ -122,7 +122,7 @@ const provider = new LocalModelProvider({
122
122
 
123
123
  ### LocalLanguageModel
124
124
 
125
- Implements AI SDK's `LanguageModelV2` interface.
125
+ Implements AI SDK's `LanguageModelV3` interface.
126
126
 
127
127
  ```typescript
128
128
  const model = provider.languageModel('qwen2.5-0.5b-instruct');
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  - ✅ **流式生成**:支持实时流式文本输出
10
10
  - ✅ **批量处理**:高效的批量嵌入处理
11
11
  - ✅ **模型缓存**:自动管理模型文件缓存
12
- - ✅ **AI SDK 兼容**:完全兼容 AI SDK v2 规范
12
+ - ✅ **AI SDK 兼容**:完全兼容 AI SDK v3 规范
13
13
  - ✅ **TypeScript**:完整的类型定义支持
14
14
  - ✅ **离线运行**:无需网络连接,完全本地化
15
15
 
@@ -122,7 +122,7 @@ const provider = new LocalModelProvider({
122
122
 
123
123
  ### LocalLanguageModel
124
124
 
125
- 实现 AI SDK 的 `LanguageModelV2` 接口。
125
+ 实现 AI SDK 的 `LanguageModelV3` 接口。
126
126
 
127
127
  ```typescript
128
128
  const model = provider.languageModel('qwen2.5-0.5b-instruct');