@aihubmix/ai-sdk-provider 1.0.0 → 1.0.2

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,4 +1,42 @@
1
- # @ai-sdk/aihubmix
1
+ # @aihubmix/ai-sdk-provider
2
+
3
+ ## 1.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 🔧 **Zod 4.x Compatibility** - Upgraded to Zod 4.2.1 for better type inference
8
+ - 📦 Upgraded AI SDK dependencies to latest versions:
9
+ - `ai`: 6.0.42
10
+ - `@ai-sdk/anthropic`: 3.0.17
11
+ - `@ai-sdk/openai`: 3.0.13
12
+ - `@ai-sdk/google`: 3.0.10
13
+ - `@ai-sdk/provider-utils`: 4.0.8
14
+ - 🧪 Updated test suite to use vitest native mocking (removed deprecated createTestServer)
15
+ - ⬆️ Upgraded vitest to 4.0.17
16
+
17
+ ## 1.0.1
18
+
19
+ ### Patch Changes
20
+
21
+ - 📝 Updated documentation for AI SDK v6 compatibility
22
+ - Updated documentation links from v5.ai-sdk.dev to sdk.vercel.ai
23
+ - Added version badges and experimental API usage notes
24
+ - Updated all README files (EN, ZH, JA)
25
+
26
+ ## 1.0.0
27
+
28
+ ### Major Changes
29
+
30
+ - 🎉 **AI SDK v6 Compatibility** - Full support for AI SDK v6
31
+ - Upgraded to Language Model Specification V3
32
+ - Updated all provider dependencies to v3/v4 compatible versions:
33
+ - `@ai-sdk/anthropic`: ^3.0.0
34
+ - `@ai-sdk/google`: ^3.0.0
35
+ - `@ai-sdk/openai`: ^3.0.0
36
+ - `@ai-sdk/provider`: ^3.0.0
37
+ - `@ai-sdk/provider-utils`: ^4.0.0
38
+ - Updated tool factory APIs to new specification (removed `name` property)
39
+ - Breaking: Requires AI SDK v6 (ai ^6.0.0)
2
40
 
3
41
  ## 0.0.2
4
42
 
package/README.ja.md CHANGED
@@ -11,9 +11,11 @@ app-codeが内蔵されており、この方法でモデルをリクエストす
11
11
 
12
12
  **[Aihubmix 公式サイト](https://aihubmix.com/)** | **[モデルスクエア](https://aihubmix.com/models)**
13
13
 
14
- [AI SDK](https://ai-sdk.dev/docs)用の **[Aihubmix provider](https://v5.ai-sdk.dev/providers/community-providers/aihubmix)**
14
+ [AI SDK](https://ai-sdk.dev/docs)用の **[Aihubmix provider](https://sdk.vercel.ai/providers/community-providers/aihubmix)**
15
15
  一つのゲートウェイ、無限のモデル;ワンストップリクエスト:OpenAI、Claude、Gemini、DeepSeek、Qwen、そして500以上のAIモデル。
16
16
 
17
+ > **📦 バージョン 1.0.1** - AI SDK v6 対応
18
+
17
19
  ## サポートされている機能
18
20
 
19
21
  Aihubmix providerは以下のAI機能をサポートしています:
@@ -71,17 +73,19 @@ import { createAihubmix } from '@aihubmix/ai-sdk-provider';
71
73
  import {
72
74
  generateText,
73
75
  streamText,
74
- generateImage,
76
+ experimental_generateImage as generateImage,
75
77
  embed,
76
78
  embedMany,
77
79
  generateObject,
78
80
  streamObject,
79
- generateSpeech,
80
- transcribe
81
+ experimental_generateSpeech as generateSpeech,
82
+ experimental_transcribe as transcribe
81
83
  } from 'ai';
82
84
  import { z } from 'zod';
83
85
  ```
84
86
 
87
+ > **注意**:`generateImage`、`generateSpeech`、`transcribe` などのAPIはAI SDK v6ではまだ実験的な機能です。
88
+
85
89
  ### テキスト生成
86
90
 
87
91
  ```ts
package/README.md CHANGED
@@ -11,9 +11,11 @@ Built-in app-code; using this method to request all models offers a 10% discount
11
11
 
12
12
  **[Aihubmix Official Website](https://aihubmix.com/)** | **[Model Square](https://aihubmix.com/models)**
13
13
 
14
- The **[Aihubmix provider](https://v5.ai-sdk.dev/providers/community-providers/aihubmix)** for the [AI SDK](https://ai-sdk.dev/docs)
14
+ The **[Aihubmix provider](https://sdk.vercel.ai/providers/community-providers/aihubmix)** for the [AI SDK](https://ai-sdk.dev/docs)
15
15
  One Gateway, Infinite Models;one-stop request: OpenAI, Claude, Gemini, DeepSeek, Qwen, and over 500 AI models.
16
16
 
17
+ > **📦 Version 1.0.1** - Compatible with AI SDK v6
18
+
17
19
 
18
20
  ## Supported Features
19
21
 
@@ -73,17 +75,19 @@ import { createAihubmix } from '@aihubmix/ai-sdk-provider';
73
75
  import {
74
76
  generateText,
75
77
  streamText,
76
- generateImage,
78
+ experimental_generateImage as generateImage,
77
79
  embed,
78
80
  embedMany,
79
81
  generateObject,
80
82
  streamObject,
81
- generateSpeech,
82
- transcribe
83
+ experimental_generateSpeech as generateSpeech,
84
+ experimental_transcribe as transcribe
83
85
  } from 'ai';
84
86
  import { z } from 'zod';
85
87
  ```
86
88
 
89
+ > **Note**: Some APIs like `generateImage`, `generateSpeech`, and `transcribe` are still experimental in AI SDK v6.
90
+
87
91
  ### Generate Text
88
92
 
89
93
  ```ts
package/README.zh.md CHANGED
@@ -11,9 +11,11 @@
11
11
 
12
12
  **[Aihubmix 官方网站](https://aihubmix.com/)** | **[模型广场](https://aihubmix.com/models)**
13
13
 
14
- **[Aihubmix provider](https://v5.ai-sdk.dev/providers/community-providers/aihubmix)** 适用于 [AI SDK](https://ai-sdk.dev/docs)
14
+ **[Aihubmix provider](https://sdk.vercel.ai/providers/community-providers/aihubmix)** 适用于 [AI SDK](https://ai-sdk.dev/docs)
15
15
  一个网关,无限模型;一站式请求:OpenAI、Claude、Gemini、DeepSeek、Qwen 以及超过 500 个 AI 模型。
16
16
 
17
+ > **📦 版本 1.0.1** - 兼容 AI SDK v6
18
+
17
19
  ## 支持的功能
18
20
 
19
21
  Aihubmix provider 支持以下 AI 功能:
@@ -71,17 +73,19 @@ import { createAihubmix } from '@aihubmix/ai-sdk-provider';
71
73
  import {
72
74
  generateText,
73
75
  streamText,
74
- generateImage,
76
+ experimental_generateImage as generateImage,
75
77
  embed,
76
78
  embedMany,
77
79
  generateObject,
78
80
  streamObject,
79
- generateSpeech,
80
- transcribe
81
+ experimental_generateSpeech as generateSpeech,
82
+ experimental_transcribe as transcribe
81
83
  } from 'ai';
82
84
  import { z } from 'zod';
83
85
  ```
84
86
 
87
+ > **注意**:`generateImage`、`generateSpeech` 和 `transcribe` 等 API 在 AI SDK v6 中仍为实验性功能。
88
+
85
89
  ### 生成文本
86
90
 
87
91
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aihubmix/ai-sdk-provider",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -44,7 +44,7 @@
44
44
  "jsdom": "^24.0.0",
45
45
  "tsup": "^8",
46
46
  "typescript": "5.6.3",
47
- "vitest": "^2.0.0"
47
+ "vitest": "^4.0.17"
48
48
  },
49
49
  "engines": {
50
50
  "node": ">=18"