@ai-sdk/provider
Advanced tools
+19
-13
| # @ai-sdk/provider | ||
| ## 3.0.9 | ||
| ### Patch Changes | ||
| - a7f3c72: trigger release for all packages after provenance setup | ||
| ## 3.0.8 | ||
@@ -72,3 +78,3 @@ | ||
| ```ts | ||
| model.textEmbeddingModel('my-model-id'); | ||
| model.textEmbeddingModel("my-model-id"); | ||
| ``` | ||
@@ -79,3 +85,3 @@ | ||
| ```ts | ||
| model.embeddingModel('my-model-id'); | ||
| model.embeddingModel("my-model-id"); | ||
| ``` | ||
@@ -200,3 +206,3 @@ | ||
| ```ts | ||
| model.textEmbeddingModel('my-model-id'); | ||
| model.textEmbeddingModel("my-model-id"); | ||
| ``` | ||
@@ -207,3 +213,3 @@ | ||
| ```ts | ||
| model.embeddingModel('my-model-id'); | ||
| model.embeddingModel("my-model-id"); | ||
| ``` | ||
@@ -395,3 +401,3 @@ | ||
| ```ts | ||
| import { convertUint8ArrayToBase64 } from '@ai-sdk/provider-utils'; | ||
| import { convertUint8ArrayToBase64 } from "@ai-sdk/provider-utils"; | ||
@@ -401,4 +407,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 | ||
@@ -414,4 +420,4 @@ }; | ||
| const filePart = { | ||
| type: 'file', | ||
| mediaType: 'application/pdf', | ||
| type: "file", | ||
| mediaType: "application/pdf", | ||
| data: fileData, // Direct Uint8Array support | ||
@@ -432,6 +438,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, | ||
@@ -595,6 +601,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, | ||
@@ -601,0 +607,0 @@ }); |
+3
-3
@@ -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 |
+4
-5
| { | ||
| "name": "@ai-sdk/provider", | ||
| "version": "3.0.8", | ||
| "version": "3.0.9", | ||
| "license": "Apache-2.0", | ||
@@ -47,3 +47,4 @@ "sideEffects": false, | ||
| "type": "git", | ||
| "url": "git+https://github.com/vercel/ai.git" | ||
| "url": "https://github.com/vercel/ai", | ||
| "directory": "packages/provider" | ||
| }, | ||
@@ -60,6 +61,4 @@ "bugs": { | ||
| "clean": "del-cli dist *.tsbuildinfo", | ||
| "lint": "eslint \"./**/*.ts*\"", | ||
| "type-check": "tsc --build", | ||
| "prettier-check": "prettier --check \"./**/*.ts*\"" | ||
| "type-check": "tsc --build" | ||
| } | ||
| } |
511008
0.01%