ai 7.0.0-beta.115 → 7.0.0-beta.116

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,12 @@
1
1
  # ai
2
2
 
3
+ ## 7.0.0-beta.116
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [e7e8f42]
8
+ - @ai-sdk/gateway@4.0.0-beta.67
9
+
3
10
  ## 7.0.0-beta.115
4
11
 
5
12
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1033,7 +1033,7 @@ import {
1033
1033
  } from "@ai-sdk/provider-utils";
1034
1034
 
1035
1035
  // src/version.ts
1036
- var VERSION = true ? "7.0.0-beta.115" : "0.0.0-test";
1036
+ var VERSION = true ? "7.0.0-beta.116" : "0.0.0-test";
1037
1037
 
1038
1038
  // src/util/download/download.ts
1039
1039
  var download = async ({
@@ -82,7 +82,7 @@ import {
82
82
  } from "@ai-sdk/provider-utils";
83
83
 
84
84
  // src/version.ts
85
- var VERSION = true ? "7.0.0-beta.115" : "0.0.0-test";
85
+ var VERSION = true ? "7.0.0-beta.116" : "0.0.0-test";
86
86
 
87
87
  // src/util/download/download.ts
88
88
  var download = async ({
@@ -119,16 +119,22 @@ You can pass such settings to the `generateImage` function
119
119
  using the `providerOptions` parameter. The options for the provider
120
120
  (`openai` in the example below) become request body properties.
121
121
 
122
- ```tsx highlight={"9"}
122
+ ```tsx highlight={"12"}
123
123
  import { generateImage } from 'ai';
124
- import { openai } from '@ai-sdk/openai';
124
+ import {
125
+ openai,
126
+ type OpenAIImageModelGenerationOptions,
127
+ } from '@ai-sdk/openai';
125
128
 
126
129
  const { image } = await generateImage({
127
130
  model: openai.image('dall-e-3'),
128
131
  prompt: 'Santa Claus driving a Cadillac',
129
132
  size: '1024x1024',
130
133
  providerOptions: {
131
- openai: { style: 'vivid', quality: 'hd' },
134
+ openai: {
135
+ style: 'vivid',
136
+ quality: 'hd',
137
+ } satisfies OpenAIImageModelGenerationOptions,
132
138
  },
133
139
  });
134
140
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai",
3
- "version": "7.0.0-beta.115",
3
+ "version": "7.0.0-beta.116",
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",
@@ -42,7 +42,7 @@
42
42
  }
43
43
  },
44
44
  "dependencies": {
45
- "@ai-sdk/gateway": "4.0.0-beta.66",
45
+ "@ai-sdk/gateway": "4.0.0-beta.67",
46
46
  "@ai-sdk/provider": "4.0.0-beta.14",
47
47
  "@ai-sdk/provider-utils": "5.0.0-beta.30"
48
48
  },