ai 4.0.0-canary.1 → 4.0.0-canary.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,134 @@
1
1
  # ai
2
2
 
3
+ ## 4.0.0-canary.11
4
+
5
+ ### Major Changes
6
+
7
+ - f68d7b1: chore (ai/core): streamObject returns result immediately (no Promise)
8
+ - f967199: chore (ai/core): streamText returns result immediately (no Promise)
9
+
10
+ ## 4.0.0-canary.10
11
+
12
+ ### Major Changes
13
+
14
+ - effbce3: chore (ai): remove responseMessage from streamText onFinish callback
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [fe4f109]
19
+ - @ai-sdk/ui-utils@1.0.0-canary.7
20
+ - @ai-sdk/react@1.0.0-canary.7
21
+
22
+ ## 4.0.0-canary.9
23
+
24
+ ### Patch Changes
25
+
26
+ - f0ec721: chore (ai): remove openai peer dependency
27
+
28
+ ## 4.0.0-canary.8
29
+
30
+ ### Major Changes
31
+
32
+ - 007cb81: chore (ai): change `streamText` warnings result to Promise
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies [70f28f6]
37
+ - @ai-sdk/ui-utils@1.0.0-canary.6
38
+ - @ai-sdk/react@1.0.0-canary.6
39
+
40
+ ## 4.0.0-canary.7
41
+
42
+ ### Major Changes
43
+
44
+ - 4e38b38: chore (ai): remove LanguageModelResponseMetadataWithHeaders type
45
+ - 54cb888: chore (ai): remove experimental_StreamData export
46
+ - 9a3d741: chore (ai): remove ExperimentalTool export
47
+ - a4f8ce9: chore (ai): AssistantResponse cleanups
48
+ - 7264b0a: chore (ai): remove responseMessages property from streamText/generateText result
49
+ - 62d08fd: chore (ai): remove TokenUsage, CompletionTokenUsage, and EmbeddingTokenUsage types
50
+ - e5d2ce8: chore (ai): remove deprecated provider registry exports
51
+ - 70ce742: chore (ai): remove experimental_continuationSteps option
52
+ - 0827bf9: chore (ai): remove LangChain adapter `toAIStream` method
53
+
54
+ ## 4.0.0-canary.6
55
+
56
+ ### Major Changes
57
+
58
+ - b801982: chore (ai/core): remove init option from streamText result methods
59
+
60
+ ### Patch Changes
61
+
62
+ - f9bb30c: chore (ai): remove unnecessary dev dependencies
63
+
64
+ ## 4.0.0-canary.5
65
+
66
+ ### Major Changes
67
+
68
+ - 4d61295: chore (ai): remove streamToResponse and streamingTextResponse
69
+ - d3ae4f6: chore (ui/react): remove useObject setInput helper
70
+ - 6090cea: chore (ai): remove rawResponse from generate/stream result objects
71
+ - 2f09717: chore (ai): remove deprecated telemetry data
72
+
73
+ ### Patch Changes
74
+
75
+ - Updated dependencies [9f81e66]
76
+ - Updated dependencies [d3ae4f6]
77
+ - Updated dependencies [8426f55]
78
+ - @ai-sdk/ui-utils@1.0.0-canary.5
79
+ - @ai-sdk/react@1.0.0-canary.5
80
+ - @ai-sdk/provider-utils@2.0.0-canary.3
81
+
82
+ ## 4.0.0-canary.4
83
+
84
+ ### Major Changes
85
+
86
+ - f0cb69d: chore (ai/core): remove experimental function exports
87
+ - da8c609: chore (ai): remove Tokens RSC helper
88
+ - cbab571: chore (ai): remove ExperimentalXXXMessage types
89
+ - 60e69ed: chore (ai/core): remove ai-stream related methods from streamText
90
+ - 073f282: chore (ai): remove AIStream and related exports
91
+ - 545d133: chore (ai): remove deprecated roundtrip settings from streamText / generateText
92
+
93
+ ### Patch Changes
94
+
95
+ - dce4158: chore (dependencies): update eventsource-parser to 3.0.0
96
+ - Updated dependencies [dce4158]
97
+ - Updated dependencies [ca3e586]
98
+ - Updated dependencies [dce4158]
99
+ - @ai-sdk/provider-utils@2.0.0-canary.2
100
+ - @ai-sdk/react@1.0.0-canary.4
101
+ - @ai-sdk/ui-utils@1.0.0-canary.4
102
+
103
+ ## 4.0.0-canary.3
104
+
105
+ ### Patch Changes
106
+
107
+ - Updated dependencies [68d30e9]
108
+ - Updated dependencies [b1da952]
109
+ - @ai-sdk/react@1.0.0-canary.3
110
+ - @ai-sdk/provider-utils@2.0.0-canary.1
111
+ - @ai-sdk/ui-utils@1.0.0-canary.3
112
+
113
+ ## 4.0.0-canary.2
114
+
115
+ ### Major Changes
116
+
117
+ - b469a7e: chore: remove isXXXError methods
118
+ - c0ddc24: chore (ai): remove toJSON method from AI SDK errors
119
+
120
+ ### Patch Changes
121
+
122
+ - Updated dependencies [e117b54]
123
+ - Updated dependencies [b469a7e]
124
+ - Updated dependencies [7814c4b]
125
+ - Updated dependencies [c0ddc24]
126
+ - Updated dependencies [db46ce5]
127
+ - @ai-sdk/react@1.0.0-canary.2
128
+ - @ai-sdk/provider-utils@2.0.0-canary.0
129
+ - @ai-sdk/provider@1.0.0-canary.0
130
+ - @ai-sdk/ui-utils@1.0.0-canary.2
131
+
3
132
  ## 4.0.0-canary.1
4
133
 
5
134
  ### Major Changes
package/README.md CHANGED
@@ -91,7 +91,7 @@ import { openai } from '@ai-sdk/openai';
91
91
  export async function POST(req: Request) {
92
92
  const { messages }: { messages: CoreMessage[] } = await req.json();
93
93
 
94
- const result = await streamText({
94
+ const result = streamText({
95
95
  model: openai('gpt-4'),
96
96
  system: 'You are a helpful assistant.',
97
97
  messages,