@ai-sdk/provider 1.0.9 → 1.0.11

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,17 @@
1
1
  # @ai-sdk/provider
2
2
 
3
+ ## 1.0.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 2e1101a: feat (provider/openai): pdf input support
8
+
9
+ ## 1.0.10
10
+
11
+ ### Patch Changes
12
+
13
+ - e1d3d42: feat (ai): expose raw response body in generateText and generateObject
14
+
3
15
  ## 1.0.9
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -701,6 +701,10 @@ File content part of a prompt. It contains a file.
701
701
  interface LanguageModelV1FilePart {
702
702
  type: 'file';
703
703
  /**
704
+ * Optional filename of the file.
705
+ */
706
+ filename?: string;
707
+ /**
704
708
  File data as base64 encoded string or as a URL.
705
709
  */
706
710
  data: string | URL;
@@ -1068,6 +1072,10 @@ An optional signature for verifying that the reasoning originated from the model
1068
1072
  Response headers.
1069
1073
  */
1070
1074
  headers?: Record<string, string>;
1075
+ /**
1076
+ Response body.
1077
+ */
1078
+ body?: unknown;
1071
1079
  };
1072
1080
  /**
1073
1081
  Optional request information for telemetry and debugging purposes.
package/dist/index.d.ts CHANGED
@@ -701,6 +701,10 @@ File content part of a prompt. It contains a file.
701
701
  interface LanguageModelV1FilePart {
702
702
  type: 'file';
703
703
  /**
704
+ * Optional filename of the file.
705
+ */
706
+ filename?: string;
707
+ /**
704
708
  File data as base64 encoded string or as a URL.
705
709
  */
706
710
  data: string | URL;
@@ -1068,6 +1072,10 @@ An optional signature for verifying that the reasoning originated from the model
1068
1072
  Response headers.
1069
1073
  */
1070
1074
  headers?: Record<string, string>;
1075
+ /**
1076
+ Response body.
1077
+ */
1078
+ body?: unknown;
1071
1079
  };
1072
1080
  /**
1073
1081
  Optional request information for telemetry and debugging purposes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/provider",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",