@ai-sdk/angular 3.0.113 → 3.0.114
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 +8 -0
- package/README.md +6 -6
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -103,7 +103,7 @@ export class ChatComponent {
|
|
|
103
103
|
{ text: userInput },
|
|
104
104
|
{
|
|
105
105
|
body: {
|
|
106
|
-
selectedModel: 'openai/gpt-
|
|
106
|
+
selectedModel: 'openai/gpt-6-astra',
|
|
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-
|
|
114
|
+
`selectedModel` should be an AI Gateway model ID like `openai/gpt-6-astra`.
|
|
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-
|
|
490
|
+
When you pass a string model ID (for example `openai/gpt-6-astra`), 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
|
|
@@ -510,7 +510,7 @@ app.post('/api/chat', async (req, res) => {
|
|
|
510
510
|
const { messages, selectedModel } = req.body;
|
|
511
511
|
|
|
512
512
|
const result = streamText({
|
|
513
|
-
model: selectedModel || 'openai/gpt-
|
|
513
|
+
model: selectedModel || 'openai/gpt-6-astra',
|
|
514
514
|
messages: convertToModelMessages(messages),
|
|
515
515
|
});
|
|
516
516
|
|
|
@@ -528,7 +528,7 @@ app.post('/api/completion', async (req, res) => {
|
|
|
528
528
|
const { prompt } = req.body;
|
|
529
529
|
|
|
530
530
|
const result = streamText({
|
|
531
|
-
model: 'openai/gpt-
|
|
531
|
+
model: 'openai/gpt-6-astra',
|
|
532
532
|
prompt,
|
|
533
533
|
});
|
|
534
534
|
|
|
@@ -549,7 +549,7 @@ app.post('/api/analyze', async (req, res) => {
|
|
|
549
549
|
const input = req.body;
|
|
550
550
|
|
|
551
551
|
const result = streamObject({
|
|
552
|
-
model: 'openai/gpt-
|
|
552
|
+
model: 'openai/gpt-6-astra',
|
|
553
553
|
schema: z.object({
|
|
554
554
|
title: z.string(),
|
|
555
555
|
summary: z.string(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/angular",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.114",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Angular implementation of ai-sdk.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@ai-sdk/provider-utils": "5.0.47",
|
|
29
|
-
"ai": "7.0.
|
|
29
|
+
"ai": "7.0.114"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@ai-sdk/test-server": "2.0.1",
|