ai 7.0.10 → 7.0.11
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.
|
@@ -13,7 +13,7 @@ Many language models support an internal "reasoning" phase (sometimes also calle
|
|
|
13
13
|
import { generateText } from 'ai';
|
|
14
14
|
|
|
15
15
|
const { text, reasoning, reasoningText } = await generateText({
|
|
16
|
-
model: 'anthropic/claude-sonnet-4.6,
|
|
16
|
+
model: 'anthropic/claude-sonnet-4.6',
|
|
17
17
|
reasoning: 'medium',
|
|
18
18
|
prompt: 'How many people will live in the world in 2040?',
|
|
19
19
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,12 +31,9 @@ async function loadDiagnosticsChannel(): Promise<
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
if (diagnosticsChannelPromise == null) {
|
|
34
|
-
diagnosticsChannelPromise = (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
'node:diagnostics_channel'
|
|
38
|
-
) as Promise<DiagnosticsChannel>
|
|
39
|
-
).catch(() => undefined);
|
|
34
|
+
diagnosticsChannelPromise = Promise.resolve(
|
|
35
|
+
loadBuiltinModule<DiagnosticsChannel>('node:diagnostics_channel'),
|
|
36
|
+
);
|
|
40
37
|
}
|
|
41
38
|
|
|
42
39
|
return diagnosticsChannelPromise;
|