@ai-sdk/angular 3.0.0-beta.1 → 3.0.0-beta.3
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 +14 -0
- package/README.md +6 -6
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @ai-sdk/angular
|
|
2
2
|
|
|
3
|
+
## 3.0.0-beta.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [531251e]
|
|
8
|
+
- @ai-sdk/provider-utils@5.0.0-beta.1
|
|
9
|
+
- ai@7.0.0-beta.3
|
|
10
|
+
|
|
11
|
+
## 3.0.0-beta.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- ai@7.0.0-beta.2
|
|
16
|
+
|
|
3
17
|
## 3.0.0-beta.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -103,7 +103,7 @@ export class ChatComponent {
|
|
|
103
103
|
{ text: userInput },
|
|
104
104
|
{
|
|
105
105
|
body: {
|
|
106
|
-
selectedModel: 'openai/gpt-5.
|
|
106
|
+
selectedModel: 'openai/gpt-5.4',
|
|
107
107
|
},
|
|
108
108
|
},
|
|
109
109
|
);
|
|
@@ -111,7 +111,7 @@ export class ChatComponent {
|
|
|
111
111
|
}
|
|
112
112
|
```
|
|
113
113
|
|
|
114
|
-
`selectedModel` should be an AI Gateway model ID like `openai/gpt-5.
|
|
114
|
+
`selectedModel` should be an AI Gateway model ID like `openai/gpt-5.4`.
|
|
115
115
|
|
|
116
116
|
### Constructor Options
|
|
117
117
|
|
|
@@ -487,7 +487,7 @@ structuredObject.stop();
|
|
|
487
487
|
|
|
488
488
|
## Server Implementation
|
|
489
489
|
|
|
490
|
-
When you pass a string model ID (for example `openai/gpt-5.
|
|
490
|
+
When you pass a string model ID (for example `openai/gpt-5.4`), the AI SDK uses
|
|
491
491
|
AI Gateway as the default provider, so no provider import is required.
|
|
492
492
|
|
|
493
493
|
### Express.js Chat Endpoint
|
|
@@ -503,7 +503,7 @@ app.post('/api/chat', async (req, res) => {
|
|
|
503
503
|
const { messages, selectedModel } = req.body;
|
|
504
504
|
|
|
505
505
|
const result = streamText({
|
|
506
|
-
model: selectedModel || 'openai/gpt-5.
|
|
506
|
+
model: selectedModel || 'openai/gpt-5.4',
|
|
507
507
|
messages: convertToModelMessages(messages),
|
|
508
508
|
});
|
|
509
509
|
|
|
@@ -518,7 +518,7 @@ app.post('/api/completion', async (req, res) => {
|
|
|
518
518
|
const { prompt } = req.body;
|
|
519
519
|
|
|
520
520
|
const result = streamText({
|
|
521
|
-
model: 'openai/gpt-5.
|
|
521
|
+
model: 'openai/gpt-5.4',
|
|
522
522
|
prompt,
|
|
523
523
|
});
|
|
524
524
|
|
|
@@ -536,7 +536,7 @@ app.post('/api/analyze', async (req, res) => {
|
|
|
536
536
|
const input = req.body;
|
|
537
537
|
|
|
538
538
|
const result = streamObject({
|
|
539
|
-
model: 'openai/gpt-5.
|
|
539
|
+
model: 'openai/gpt-5.4',
|
|
540
540
|
schema: z.object({
|
|
541
541
|
title: z.string(),
|
|
542
542
|
summary: z.string(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/angular",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.3",
|
|
4
4
|
"description": "Angular implementation of ai-sdk.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"README.md"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@ai-sdk/provider-utils": "5.0.0-beta.
|
|
29
|
-
"ai": "7.0.0-beta.
|
|
28
|
+
"@ai-sdk/provider-utils": "5.0.0-beta.1",
|
|
29
|
+
"ai": "7.0.0-beta.3"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "20.17.24",
|