@ai-sdk/openai
Advanced tools
Comparing version 0.0.57 to 0.0.58
@@ -59,3 +59,3 @@ "use strict"; | ||
content: content.map((part) => { | ||
var _a; | ||
var _a, _b, _c; | ||
switch (part.type) { | ||
@@ -69,3 +69,5 @@ case "text": { | ||
image_url: { | ||
url: part.image instanceof URL ? part.image.toString() : `data:${(_a = part.mimeType) != null ? _a : "image/jpeg"};base64,${(0, import_provider_utils.convertUint8ArrayToBase64)(part.image)}` | ||
url: part.image instanceof URL ? part.image.toString() : `data:${(_a = part.mimeType) != null ? _a : "image/jpeg"};base64,${(0, import_provider_utils.convertUint8ArrayToBase64)(part.image)}`, | ||
// OpenAI specific extension: image detail | ||
detail: (_c = (_b = part.providerMetadata) == null ? void 0 : _b.openai) == null ? void 0 : _c.imageDetail | ||
} | ||
@@ -72,0 +74,0 @@ }; |
# @ai-sdk/openai | ||
## 0.0.58 | ||
### Patch Changes | ||
- e0c36bd: feat (provider/openai): support image detail | ||
## 0.0.57 | ||
@@ -4,0 +10,0 @@ |
@@ -59,3 +59,3 @@ "use strict"; | ||
content: content.map((part) => { | ||
var _a; | ||
var _a, _b, _c; | ||
switch (part.type) { | ||
@@ -69,3 +69,5 @@ case "text": { | ||
image_url: { | ||
url: part.image instanceof URL ? part.image.toString() : `data:${(_a = part.mimeType) != null ? _a : "image/jpeg"};base64,${(0, import_provider_utils.convertUint8ArrayToBase64)(part.image)}` | ||
url: part.image instanceof URL ? part.image.toString() : `data:${(_a = part.mimeType) != null ? _a : "image/jpeg"};base64,${(0, import_provider_utils.convertUint8ArrayToBase64)(part.image)}`, | ||
// OpenAI specific extension: image detail | ||
detail: (_c = (_b = part.providerMetadata) == null ? void 0 : _b.openai) == null ? void 0 : _c.imageDetail | ||
} | ||
@@ -72,0 +74,0 @@ }; |
@@ -56,3 +56,3 @@ "use strict"; | ||
content: content.map((part) => { | ||
var _a; | ||
var _a, _b, _c; | ||
switch (part.type) { | ||
@@ -66,3 +66,5 @@ case "text": { | ||
image_url: { | ||
url: part.image instanceof URL ? part.image.toString() : `data:${(_a = part.mimeType) != null ? _a : "image/jpeg"};base64,${(0, import_provider_utils.convertUint8ArrayToBase64)(part.image)}` | ||
url: part.image instanceof URL ? part.image.toString() : `data:${(_a = part.mimeType) != null ? _a : "image/jpeg"};base64,${(0, import_provider_utils.convertUint8ArrayToBase64)(part.image)}`, | ||
// OpenAI specific extension: image detail | ||
detail: (_c = (_b = part.providerMetadata) == null ? void 0 : _b.openai) == null ? void 0 : _c.imageDetail | ||
} | ||
@@ -69,0 +71,0 @@ }; |
{ | ||
"name": "@ai-sdk/openai", | ||
"version": "0.0.57", | ||
"version": "0.0.58", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
575259
6778