@ai-sdk/deepinfra 2.0.23 → 2.0.25
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 +8 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/docs/11-deepinfra.mdx +13 -11
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @ai-sdk/deepinfra
|
|
2
2
|
|
|
3
|
+
## 2.0.25
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1524271: chore: add skill information to README files
|
|
8
|
+
- Updated dependencies [1524271]
|
|
9
|
+
- @ai-sdk/openai-compatible@2.0.23
|
|
10
|
+
|
|
11
|
+
## 2.0.24
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 3988c08: docs: fix incorrect and outdated provider docs
|
|
16
|
+
|
|
3
17
|
## 2.0.23
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -11,6 +11,14 @@ The DeepInfra provider is available in the `@ai-sdk/deepinfra` module. You can i
|
|
|
11
11
|
npm i @ai-sdk/deepinfra
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
## Skill for Coding Agents
|
|
15
|
+
|
|
16
|
+
If you use coding agents such as Claude Code or Cursor, we highly recommend adding the AI SDK skill to your repository:
|
|
17
|
+
|
|
18
|
+
```shell
|
|
19
|
+
npx skills add vercel/ai
|
|
20
|
+
```
|
|
21
|
+
|
|
14
22
|
## Provider Instance
|
|
15
23
|
|
|
16
24
|
You can import the default provider instance `deepinfra` from `@ai-sdk/deepinfra`:
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/docs/11-deepinfra.mdx
CHANGED
|
@@ -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
|
|
242
|
-
|
|
|
243
|
-
| `stabilityai/sd3.5`
|
|
244
|
-
| `black-forest-labs/FLUX-1.1-pro`
|
|
245
|
-
| `black-forest-labs/FLUX-1-schnell`
|
|
246
|
-
| `black-forest-labs/FLUX-1-dev`
|
|
247
|
-
| `black-forest-labs/FLUX-pro`
|
|
248
|
-
| `
|
|
249
|
-
| `
|
|
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 `.
|
|
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.
|
|
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.
|
|
3
|
+
"version": "2.0.25",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@ai-sdk/openai-compatible": "2.0.
|
|
32
|
+
"@ai-sdk/openai-compatible": "2.0.23",
|
|
33
33
|
"@ai-sdk/provider": "3.0.5",
|
|
34
34
|
"@ai-sdk/provider-utils": "4.0.10"
|
|
35
35
|
},
|