@dsts/ai-sdk 0.0.0-stage → 0.1.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.
- package/LICENSE +21 -0
- package/README.md +59 -2
- package/README.zh-CN.md +60 -0
- package/dist/index.d.mts +8 -0
- package/dist/index.mjs +243 -0
- package/package.json +43 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 chizukicn
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,60 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @dsts/ai-sdk
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
English | [中文](./README.zh-CN.md)
|
|
4
|
+
|
|
5
|
+
Bridge from Vercel AI SDK language models into a dsts [`LM`](../core). Unlike `@dsts/openai` / `@dsts/anthropic`, this package adapts an **already constructed** `LanguageModelV3` or `LanguageModelV4` instance.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
pnpm add @dsts/ai-sdk @ai-sdk/provider
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Also install the AI SDK provider you use (for example `@ai-sdk/openai`). Peer dependency: `@ai-sdk/provider` ^4.0.0. Requires Node.js 22.18+.
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { createOpenAI } from "@ai-sdk/openai";
|
|
19
|
+
import { fromAISdk } from "@dsts/ai-sdk";
|
|
20
|
+
|
|
21
|
+
const openai = createOpenAI({ apiKey: process.env.OPENAI_API_KEY });
|
|
22
|
+
const lm = fromAISdk(openai("gpt-5"), {
|
|
23
|
+
maxTokens: 1024,
|
|
24
|
+
supports: ["streaming", "tools", "vision", "reasoning"],
|
|
25
|
+
});
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Pass `lm` via call context — `await predict(inputs, { lm })` — or call `lm.generate({ messages })` / `lm.stream({ messages })` directly.
|
|
29
|
+
|
|
30
|
+
### Why `fromAISdk`?
|
|
31
|
+
|
|
32
|
+
`createOpenAI` and `createAnthropic` from the dsts provider packages create callable factories that share an SDK client across models. `fromAISdk` wraps a finished AI SDK model object, so the name follows the adapter (`from*`) pattern.
|
|
33
|
+
|
|
34
|
+
### Options
|
|
35
|
+
|
|
36
|
+
`fromAISdk(model, options?)` takes:
|
|
37
|
+
|
|
38
|
+
| Argument | Description |
|
|
39
|
+
| --- | --- |
|
|
40
|
+
| `model` | `LanguageModelV3` or `LanguageModelV4` |
|
|
41
|
+
| `options.supports` | Feature list or `LM.supports` callback. Defaults to `["streaming", "tools", "vision"]`. A supplied list or callback replaces the defaults. |
|
|
42
|
+
| `options.providerOptions` | Forwarded to AI SDK `doGenerate` / `doStream` |
|
|
43
|
+
| `options.maxTokens`, `temperature`, `topP` | Shared defaults; overridable per call via `Context.modelSettings` |
|
|
44
|
+
|
|
45
|
+
The returned LM copies `modelId` and `provider` from the AI SDK model.
|
|
46
|
+
|
|
47
|
+
### Capabilities
|
|
48
|
+
|
|
49
|
+
`lm.supports()` advertises capabilities to dsts adapters. Use `providerOptions` to configure provider-specific reasoning settings. The bridge returns reasoning parts whenever the model emits them.
|
|
50
|
+
|
|
51
|
+
Supports:
|
|
52
|
+
|
|
53
|
+
- Non-streaming and streaming text
|
|
54
|
+
- Client-executed tools (provider-executed tool calls are ignored)
|
|
55
|
+
- Image inputs via data URLs
|
|
56
|
+
- Reasoning text parts when enabled
|
|
57
|
+
|
|
58
|
+
## License
|
|
59
|
+
|
|
60
|
+
[MIT](./LICENSE)
|
package/README.zh-CN.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# @dsts/ai-sdk
|
|
2
|
+
|
|
3
|
+
[English](./README.md) | 中文
|
|
4
|
+
|
|
5
|
+
把 Vercel AI SDK 的语言模型桥接到 dsts [`LM`](../core)。与 `@dsts/openai` / `@dsts/anthropic` 不同,本包适配的是**已经构造好的** `LanguageModelV3` 或 `LanguageModelV4` 实例。
|
|
6
|
+
|
|
7
|
+
## 安装
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
pnpm add @dsts/ai-sdk @ai-sdk/provider
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
同时安装你使用的 AI SDK provider(例如 `@ai-sdk/openai`)。Peer 依赖:`@ai-sdk/provider` ^4.0.0。需要 Node.js 22.18+。
|
|
14
|
+
|
|
15
|
+
## 用法
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { createOpenAI } from "@ai-sdk/openai";
|
|
19
|
+
import { fromAISdk } from "@dsts/ai-sdk";
|
|
20
|
+
|
|
21
|
+
const openai = createOpenAI({ apiKey: process.env.OPENAI_API_KEY });
|
|
22
|
+
const lm = fromAISdk(openai("gpt-5"), {
|
|
23
|
+
maxTokens: 1024,
|
|
24
|
+
supports: ["streaming", "tools", "vision", "reasoning"],
|
|
25
|
+
});
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
通过调用 context 传入 `lm` —— `await predict(inputs, { lm })` —— 或直接调用 `lm.generate({ messages })` / `lm.stream({ messages })`。
|
|
29
|
+
|
|
30
|
+
### 为什么叫 `fromAISdk`?
|
|
31
|
+
|
|
32
|
+
dsts provider 包里的 `createOpenAI` / `createAnthropic` 会创建可调用的工厂,并在多个模型间共享 SDK client。`fromAISdk` 包装的是已经建好的 AI SDK model 对象,因此采用适配器常见的 `from*` 命名。
|
|
33
|
+
|
|
34
|
+
### 选项
|
|
35
|
+
|
|
36
|
+
`fromAISdk(model, options?)` 参数:
|
|
37
|
+
|
|
38
|
+
| 参数 | 说明 |
|
|
39
|
+
| --- | --- |
|
|
40
|
+
| `model` | `LanguageModelV3` 或 `LanguageModelV4` |
|
|
41
|
+
| `options.supports` | 功能列表或 `LM.supports` 回调。默认 `["streaming", "tools", "vision"]`。传入列表或回调会替换默认值。 |
|
|
42
|
+
| `options.providerOptions` | 转发给 AI SDK 的 `doGenerate` / `doStream` |
|
|
43
|
+
| `options.maxTokens`、`temperature`、`topP` | 共享默认值;可通过 `Context.modelSettings` 按次覆盖 |
|
|
44
|
+
|
|
45
|
+
返回的 LM 会从 AI SDK model 复制 `modelId` 与 `provider`。
|
|
46
|
+
|
|
47
|
+
### 能力
|
|
48
|
+
|
|
49
|
+
`lm.supports()` 向 dsts 适配器声明能力。用 `providerOptions` 配置 provider 特有的 reasoning 设置。只要模型发出 reasoning 部分,桥接就会返回。
|
|
50
|
+
|
|
51
|
+
支持:
|
|
52
|
+
|
|
53
|
+
- 非流式与流式文本
|
|
54
|
+
- 客户端执行的工具(忽略 provider 侧执行的 tool calls)
|
|
55
|
+
- 通过 data URL 的图片输入
|
|
56
|
+
- 启用时的 reasoning 文本部分
|
|
57
|
+
|
|
58
|
+
## 许可证
|
|
59
|
+
|
|
60
|
+
[MIT](./LICENSE)
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LanguageModelV3, LanguageModelV4 } from "@ai-sdk/provider";
|
|
2
|
+
import { LM, LMFeature, ModelSettings } from "@dsts/core";
|
|
3
|
+
export type AISdkModel = LanguageModelV3 | LanguageModelV4;
|
|
4
|
+
export interface AISdkOptions extends ModelSettings {
|
|
5
|
+
readonly supports?: readonly LMFeature[] | NonNullable<LM["supports"]>;
|
|
6
|
+
readonly providerOptions?: Parameters<LanguageModelV3["doGenerate"]>[0]["providerOptions"];
|
|
7
|
+
}
|
|
8
|
+
export declare function fromAISdk(model: AISdkModel, { supports, providerOptions, ...defaults }?: AISdkOptions): LM;
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { ToolCallStream, parseImageDataURL, parseToolInput, requestWithTools, resolveSupports } from "@dsts/core";
|
|
2
|
+
// src/index.ts
|
|
3
|
+
function prompt(messages, imagePart) {
|
|
4
|
+
const names = /* @__PURE__ */ new Map();
|
|
5
|
+
return messages.map((message) => {
|
|
6
|
+
if (message.role === "tool") {
|
|
7
|
+
const toolName = names.get(message.toolCallId);
|
|
8
|
+
if (!toolName) throw new TypeError(`Missing tool call for result ${message.toolCallId}`);
|
|
9
|
+
return {
|
|
10
|
+
role: "tool",
|
|
11
|
+
content: [{
|
|
12
|
+
type: "tool-result",
|
|
13
|
+
toolCallId: message.toolCallId,
|
|
14
|
+
toolName,
|
|
15
|
+
output: {
|
|
16
|
+
type: "text",
|
|
17
|
+
value: message.content
|
|
18
|
+
}
|
|
19
|
+
}]
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
if ("toolCalls" in message) {
|
|
23
|
+
const calls = message.toolCalls.map(({ id, name, args }) => {
|
|
24
|
+
names.set(id, name);
|
|
25
|
+
return {
|
|
26
|
+
type: "tool-call",
|
|
27
|
+
toolCallId: id,
|
|
28
|
+
toolName: name,
|
|
29
|
+
input: parseToolInput(args)
|
|
30
|
+
};
|
|
31
|
+
});
|
|
32
|
+
return {
|
|
33
|
+
role: "assistant",
|
|
34
|
+
content: [...message.content ? [{
|
|
35
|
+
type: "text",
|
|
36
|
+
text: message.content
|
|
37
|
+
}] : [], ...calls]
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
if (message.role === "system") return {
|
|
41
|
+
role: "system",
|
|
42
|
+
content: message.content
|
|
43
|
+
};
|
|
44
|
+
return {
|
|
45
|
+
role: message.role,
|
|
46
|
+
content: [{
|
|
47
|
+
type: "text",
|
|
48
|
+
text: message.content
|
|
49
|
+
}, ...message.images?.map(imagePart) ?? []]
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function imagePartV3(url) {
|
|
54
|
+
const embedded = parseImageDataURL(url);
|
|
55
|
+
return embedded ? {
|
|
56
|
+
type: "file",
|
|
57
|
+
mediaType: embedded.mediaType,
|
|
58
|
+
data: embedded.data
|
|
59
|
+
} : {
|
|
60
|
+
type: "file",
|
|
61
|
+
mediaType: "image/*",
|
|
62
|
+
data: new URL(url)
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function imagePartV4(url) {
|
|
66
|
+
const embedded = parseImageDataURL(url);
|
|
67
|
+
return embedded ? {
|
|
68
|
+
type: "file",
|
|
69
|
+
mediaType: embedded.mediaType,
|
|
70
|
+
data: {
|
|
71
|
+
type: "data",
|
|
72
|
+
data: embedded.data
|
|
73
|
+
}
|
|
74
|
+
} : {
|
|
75
|
+
type: "file",
|
|
76
|
+
mediaType: "image",
|
|
77
|
+
data: {
|
|
78
|
+
type: "url",
|
|
79
|
+
url: new URL(url)
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
function callOptions(tools, abortSignal) {
|
|
84
|
+
return {
|
|
85
|
+
abortSignal,
|
|
86
|
+
...tools.length ? {
|
|
87
|
+
tools: tools.map(({ name, description, parameters }) => ({
|
|
88
|
+
type: "function",
|
|
89
|
+
name,
|
|
90
|
+
description,
|
|
91
|
+
inputSchema: parameters
|
|
92
|
+
})),
|
|
93
|
+
toolChoice: tools.length === 1 ? {
|
|
94
|
+
type: "tool",
|
|
95
|
+
toolName: tools[0].name
|
|
96
|
+
} : { type: "auto" }
|
|
97
|
+
} : {}
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
function readFinishReason(reason) {
|
|
101
|
+
if (reason.unified === "error" || reason.unified === "length" || reason.unified === "content-filter") throw new Error(`AI SDK model stopped with reason ${reason.unified}`);
|
|
102
|
+
}
|
|
103
|
+
async function* streamParts(stream, signal) {
|
|
104
|
+
const reader = stream.getReader();
|
|
105
|
+
const cancel = () => {
|
|
106
|
+
reader.cancel(signal?.reason).catch(() => void 0);
|
|
107
|
+
};
|
|
108
|
+
signal?.addEventListener("abort", cancel, { once: true });
|
|
109
|
+
try {
|
|
110
|
+
while (true) {
|
|
111
|
+
signal?.throwIfAborted();
|
|
112
|
+
const { done, value } = await reader.read();
|
|
113
|
+
signal?.throwIfAborted();
|
|
114
|
+
if (done) return;
|
|
115
|
+
yield value;
|
|
116
|
+
}
|
|
117
|
+
} finally {
|
|
118
|
+
signal?.removeEventListener("abort", cancel);
|
|
119
|
+
await reader.cancel().catch(() => void 0);
|
|
120
|
+
reader.releaseLock();
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
function fromAISdk(model, { supports, providerOptions, ...defaults } = {}) {
|
|
124
|
+
const requestSettings = (context) => {
|
|
125
|
+
const { temperature, topP, maxTokens } = context?.modelSettings ?? {};
|
|
126
|
+
return {
|
|
127
|
+
temperature: temperature ?? defaults.temperature,
|
|
128
|
+
topP: topP ?? defaults.topP,
|
|
129
|
+
maxOutputTokens: maxTokens ?? defaults.maxTokens,
|
|
130
|
+
providerOptions
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
const generate = (messages, tools, context) => {
|
|
134
|
+
const signal = context?.abortSignal;
|
|
135
|
+
const options = {
|
|
136
|
+
...requestSettings(context),
|
|
137
|
+
...callOptions(tools, signal)
|
|
138
|
+
};
|
|
139
|
+
return model.specificationVersion === "v4" ? model.doGenerate({
|
|
140
|
+
...options,
|
|
141
|
+
prompt: prompt(messages, imagePartV4)
|
|
142
|
+
}) : model.doGenerate({
|
|
143
|
+
...options,
|
|
144
|
+
prompt: prompt(messages, imagePartV3)
|
|
145
|
+
});
|
|
146
|
+
};
|
|
147
|
+
async function* modelStream(messages, tools, context) {
|
|
148
|
+
const signal = context?.abortSignal;
|
|
149
|
+
const options = {
|
|
150
|
+
...requestSettings(context),
|
|
151
|
+
...callOptions(tools, signal)
|
|
152
|
+
};
|
|
153
|
+
const send = () => model.specificationVersion === "v4" ? model.doStream({
|
|
154
|
+
...options,
|
|
155
|
+
prompt: prompt(messages, imagePartV4)
|
|
156
|
+
}) : model.doStream({
|
|
157
|
+
...options,
|
|
158
|
+
prompt: prompt(messages, imagePartV3)
|
|
159
|
+
});
|
|
160
|
+
const result = tools.length ? await requestWithTools(send) : await send();
|
|
161
|
+
let finished = false;
|
|
162
|
+
for await (const part of streamParts(result.stream, signal)) {
|
|
163
|
+
if (part.type === "error") throw part.error instanceof Error ? part.error : new Error("AI SDK model stream returned an error", { cause: part.error });
|
|
164
|
+
if (part.type === "finish") {
|
|
165
|
+
readFinishReason(part.finishReason);
|
|
166
|
+
finished = true;
|
|
167
|
+
}
|
|
168
|
+
yield part;
|
|
169
|
+
}
|
|
170
|
+
if (!finished) throw new Error("AI SDK model stream ended before the finish event");
|
|
171
|
+
}
|
|
172
|
+
return {
|
|
173
|
+
modelId: model.modelId,
|
|
174
|
+
provider: model.provider,
|
|
175
|
+
supports: resolveSupports(supports),
|
|
176
|
+
async generate({ messages, tools = [] }, context) {
|
|
177
|
+
const send = () => generate(messages, tools, context);
|
|
178
|
+
const response = tools.length ? await requestWithTools(send) : await send();
|
|
179
|
+
readFinishReason(response.finishReason);
|
|
180
|
+
const reasoning = response.content.filter((part) => part.type === "reasoning").map(({ text }) => text).join("");
|
|
181
|
+
return {
|
|
182
|
+
text: response.content.filter((part) => part.type === "text").map(({ text }) => text).join(""),
|
|
183
|
+
...reasoning ? { reasoning } : {},
|
|
184
|
+
...tools.length ? { toolCalls: response.content.flatMap((part) => part.type === "tool-call" && !part.providerExecuted ? [{
|
|
185
|
+
id: part.toolCallId,
|
|
186
|
+
name: part.toolName,
|
|
187
|
+
args: part.input
|
|
188
|
+
}] : []) } : {}
|
|
189
|
+
};
|
|
190
|
+
},
|
|
191
|
+
async *stream({ messages, tools = [] }, context) {
|
|
192
|
+
const calls = new ToolCallStream();
|
|
193
|
+
const pending = /* @__PURE__ */ new Set();
|
|
194
|
+
let text = "";
|
|
195
|
+
let thought = "";
|
|
196
|
+
for await (const part of modelStream(messages, tools, context)) if (part.type === "text-delta") {
|
|
197
|
+
text += part.delta;
|
|
198
|
+
yield {
|
|
199
|
+
type: "text-delta",
|
|
200
|
+
delta: part.delta
|
|
201
|
+
};
|
|
202
|
+
} else if (part.type === "reasoning-delta") {
|
|
203
|
+
thought += part.delta;
|
|
204
|
+
yield {
|
|
205
|
+
type: "reasoning-delta",
|
|
206
|
+
delta: part.delta
|
|
207
|
+
};
|
|
208
|
+
} else if (tools.length && part.type === "tool-input-start" && !part.providerExecuted) {
|
|
209
|
+
pending.add(part.id);
|
|
210
|
+
yield calls.push({
|
|
211
|
+
type: "start",
|
|
212
|
+
id: part.id,
|
|
213
|
+
name: part.toolName
|
|
214
|
+
});
|
|
215
|
+
} else if (part.type === "tool-input-delta" && pending.has(part.id)) yield calls.push({
|
|
216
|
+
type: "delta",
|
|
217
|
+
id: part.id,
|
|
218
|
+
delta: part.delta
|
|
219
|
+
});
|
|
220
|
+
else if (tools.length && part.type === "tool-call" && !part.providerExecuted) {
|
|
221
|
+
pending.delete(part.toolCallId);
|
|
222
|
+
yield calls.push({
|
|
223
|
+
type: "complete",
|
|
224
|
+
call: {
|
|
225
|
+
id: part.toolCallId,
|
|
226
|
+
name: part.toolName,
|
|
227
|
+
args: part.input
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
context?.abortSignal?.throwIfAborted();
|
|
232
|
+
yield {
|
|
233
|
+
type: "finish",
|
|
234
|
+
response: {
|
|
235
|
+
text,
|
|
236
|
+
...thought ? { reasoning: thought } : {},
|
|
237
|
+
...tools.length ? { toolCalls: calls.finish() } : {}
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
export { fromAISdk };
|
package/package.json
CHANGED
|
@@ -1,6 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsts/ai-sdk",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"description": "Vercel AI SDK (V3/V4) bridge for dsts",
|
|
6
|
+
"author": "chizukicn",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"homepage": "https://github.com/chizukicn/dsts/tree/main/packages/ai-sdk#readme",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/chizukicn/dsts.git",
|
|
12
|
+
"directory": "packages/ai-sdk"
|
|
13
|
+
},
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/chizukicn/dsts/issues"
|
|
16
|
+
},
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.mts",
|
|
20
|
+
"import": "./dist/index.mjs"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=22.18.0"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"@ai-sdk/provider": "^4.0.0"
|
|
31
|
+
},
|
|
32
|
+
"peerDependenciesMeta": {
|
|
33
|
+
"@ai-sdk/provider": {
|
|
34
|
+
"optional": true
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@dsts/core": "^0.1.0"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@ai-sdk/provider": "4.0.39"
|
|
42
|
+
},
|
|
43
|
+
"scripts": {
|
|
44
|
+
"build": "tsdown --config-loader tsx"
|
|
45
|
+
}
|
|
6
46
|
}
|