@ai-sdk/deepinfra 2.0.23 → 2.0.24

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,11 @@
1
1
  # @ai-sdk/deepinfra
2
2
 
3
+ ## 2.0.24
4
+
5
+ ### Patch Changes
6
+
7
+ - 3988c08: docs: fix incorrect and outdated provider docs
8
+
3
9
  ## 2.0.23
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -161,7 +161,7 @@ async function fileToBlob(file) {
161
161
  }
162
162
 
163
163
  // src/version.ts
164
- var VERSION = true ? "2.0.23" : "0.0.0-test";
164
+ var VERSION = true ? "2.0.24" : "0.0.0-test";
165
165
 
166
166
  // src/deepinfra-provider.ts
167
167
  function createDeepInfra(options = {}) {
package/dist/index.mjs CHANGED
@@ -150,7 +150,7 @@ async function fileToBlob(file) {
150
150
  }
151
151
 
152
152
  // src/version.ts
153
- var VERSION = true ? "2.0.23" : "0.0.0-test";
153
+ var VERSION = true ? "2.0.24" : "0.0.0-test";
154
154
 
155
155
  // src/deepinfra-provider.ts
156
156
  function createDeepInfra(options = {}) {
@@ -238,21 +238,23 @@ For models supporting size parameters, dimensions must typically be:
238
238
  - Width and height between 256 and 1440 pixels
239
239
  - Default size is 1024x1024
240
240
 
241
- | Model | Dimensions Specification | Notes |
242
- | ---------------------------------- | ------------------------ | -------------------------------------------------------- |
243
- | `stabilityai/sd3.5` | Aspect Ratio | Premium quality base model, 8B parameters |
244
- | `black-forest-labs/FLUX-1.1-pro` | Size | Latest state-of-art model with superior prompt following |
245
- | `black-forest-labs/FLUX-1-schnell` | Size | Fast generation in 1-4 steps |
246
- | `black-forest-labs/FLUX-1-dev` | Size | Optimized for anatomical accuracy |
247
- | `black-forest-labs/FLUX-pro` | Size | Flagship Flux model |
248
- | `stabilityai/sd3.5-medium` | Aspect Ratio | Balanced 2.5B parameter model |
249
- | `stabilityai/sdxl-turbo` | Aspect Ratio | Optimized for fast generation |
241
+ | Model | Dimensions Specification | Notes |
242
+ | -------------------------------------- | ------------------------ | -------------------------------------------------------- |
243
+ | `stabilityai/sd3.5` | Aspect Ratio | Premium quality base model, 8B parameters |
244
+ | `black-forest-labs/FLUX-1.1-pro` | Size | Latest state-of-art model with superior prompt following |
245
+ | `black-forest-labs/FLUX-1-schnell` | Size | Fast generation in 1-4 steps |
246
+ | `black-forest-labs/FLUX-1-dev` | Size | Optimized for anatomical accuracy |
247
+ | `black-forest-labs/FLUX-pro` | Size | Flagship Flux model |
248
+ | `black-forest-labs/FLUX.1-Kontext-dev` | Size | Image editing and transformation model |
249
+ | `black-forest-labs/FLUX.1-Kontext-pro` | Size | Professional image editing and transformation |
250
+ | `stabilityai/sd3.5-medium` | Aspect Ratio | Balanced 2.5B parameter model |
251
+ | `stabilityai/sdxl-turbo` | Aspect Ratio | Optimized for fast generation |
250
252
 
251
253
  For more details and pricing information, see the [DeepInfra text-to-image models page](https://deepinfra.com/models/text-to-image).
252
254
 
253
255
  ## Embedding Models
254
256
 
255
- You can create DeepInfra embedding models using the `.embedding()` factory method.
257
+ You can create DeepInfra embedding models using the `.embeddingModel()` factory method.
256
258
  For more on embedding models with the AI SDK see [embed()](/docs/reference/ai-sdk-core/embed).
257
259
 
258
260
  ```ts
@@ -260,7 +262,7 @@ import { deepinfra } from '@ai-sdk/deepinfra';
260
262
  import { embed } from 'ai';
261
263
 
262
264
  const { embedding } = await embed({
263
- model: deepinfra.embedding('BAAI/bge-large-en-v1.5'),
265
+ model: deepinfra.embeddingModel('BAAI/bge-large-en-v1.5'),
264
266
  value: 'sunny day at the beach',
265
267
  });
266
268
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/deepinfra",
3
- "version": "2.0.23",
3
+ "version": "2.0.24",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",