🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@ai-sdk/provider

Package Overview
Dependencies
Maintainers
3
Versions
157
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-sdk/provider - npm Package Compare versions

Comparing version
2.0.1
to
2.0.2
+16
-10
CHANGELOG.md
# @ai-sdk/provider
## 2.0.2
### Patch Changes
- 0a00b9b: trigger release for all packages after provenance setup
## 2.0.1

@@ -7,3 +13,3 @@

- 4953414: fix: trigger new release for `@ai-v5` dist-tag
- 526fe8d: fix: trigger new release for `@ai-v5` dist-tag

@@ -77,3 +83,3 @@ ## 2.0.0

```ts
import { convertUint8ArrayToBase64 } from '@ai-sdk/provider-utils';
import { convertUint8ArrayToBase64 } from "@ai-sdk/provider-utils";

@@ -83,4 +89,4 @@ // Had to manually convert binary data to base64

const filePart = {
type: 'file',
mediaType: 'application/pdf',
type: "file",
mediaType: "application/pdf",
data: convertUint8ArrayToBase64(fileData), // Required conversion

@@ -96,4 +102,4 @@ };

const filePart = {
type: 'file',
mediaType: 'application/pdf',
type: "file",
mediaType: "application/pdf",
data: fileData, // Direct Uint8Array support

@@ -114,6 +120,6 @@ };

```js
const prompt = 'Santa Claus driving a Cadillac';
const prompt = "Santa Claus driving a Cadillac";
const { providerMetadata } = await experimental_generateImage({
model: openai.image('dall-e-3'),
model: openai.image("dall-e-3"),
prompt,

@@ -277,6 +283,6 @@ });

```js
const prompt = 'Santa Claus driving a Cadillac';
const prompt = "Santa Claus driving a Cadillac";
const { providerMetadata } = await experimental_generateImage({
model: openai.image('dall-e-3'),
model: openai.image("dall-e-3"),
prompt,

@@ -283,0 +289,0 @@ });

@@ -21,4 +21,4 @@ "use strict";

// src/index.ts
var src_exports = {};
__export(src_exports, {
var index_exports = {};
__export(index_exports, {
AISDKError: () => AISDKError,

@@ -43,3 +43,3 @@ APICallError: () => APICallError,

});
module.exports = __toCommonJS(src_exports);
module.exports = __toCommonJS(index_exports);

@@ -46,0 +46,0 @@ // src/errors/ai-sdk-error.ts

{
"name": "@ai-sdk/provider",
"version": "2.0.1",
"version": "2.0.2",
"license": "Apache-2.0",

@@ -40,3 +40,4 @@ "sideEffects": false,

"type": "git",
"url": "git+https://github.com/vercel/ai.git"
"url": "https://github.com/vercel/ai",
"directory": "packages/provider"
},

@@ -53,6 +54,4 @@ "bugs": {

"clean": "del-cli dist *.tsbuildinfo",
"lint": "eslint \"./**/*.ts*\"",
"type-check": "tsc --build",
"prettier-check": "prettier --check \"./**/*.ts*\""
"type-check": "tsc --build"
}
}