@ai-sdk/openai-compatible 0.1.2 → 0.1.4

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,18 @@
1
1
  # @ai-sdk/openai-compatible
2
2
 
3
+ ## 0.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [39e5c1f]
8
+ - @ai-sdk/provider-utils@2.1.3
9
+
10
+ ## 0.1.3
11
+
12
+ ### Patch Changes
13
+
14
+ - 361fd08: chore: update a few add'l processor references to extractor
15
+
3
16
  ## 0.1.2
4
17
 
5
18
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -75,10 +75,11 @@ type MetadataExtractor = {
75
75
  parsedBody: unknown;
76
76
  }) => LanguageModelV1ProviderMetadata | undefined;
77
77
  /**
78
- * Creates a streaming metadata processor that can accumulate and process chunks
79
- * of a streaming response. Used to build metadata progressively during streaming.
78
+ * Creates an extractor for handling streaming responses. The returned object provides
79
+ * methods to process individual chunks and build the final metadata from the accumulated
80
+ * stream data.
80
81
  *
81
- * @returns A new StreamingMetadataProcessor instance
82
+ * @returns An object with methods to process chunks and build metadata from a stream
82
83
  */
83
84
  createStreamExtractor: () => {
84
85
  /**
package/dist/index.d.ts CHANGED
@@ -75,10 +75,11 @@ type MetadataExtractor = {
75
75
  parsedBody: unknown;
76
76
  }) => LanguageModelV1ProviderMetadata | undefined;
77
77
  /**
78
- * Creates a streaming metadata processor that can accumulate and process chunks
79
- * of a streaming response. Used to build metadata progressively during streaming.
78
+ * Creates an extractor for handling streaming responses. The returned object provides
79
+ * methods to process individual chunks and build the final metadata from the accumulated
80
+ * stream data.
80
81
  *
81
- * @returns A new StreamingMetadataProcessor instance
82
+ * @returns An object with methods to process chunks and build metadata from a stream
82
83
  */
83
84
  createStreamExtractor: () => {
84
85
  /**
@@ -81,10 +81,11 @@ type MetadataExtractor = {
81
81
  parsedBody: unknown;
82
82
  }) => LanguageModelV1ProviderMetadata | undefined;
83
83
  /**
84
- * Creates a streaming metadata processor that can accumulate and process chunks
85
- * of a streaming response. Used to build metadata progressively during streaming.
84
+ * Creates an extractor for handling streaming responses. The returned object provides
85
+ * methods to process individual chunks and build the final metadata from the accumulated
86
+ * stream data.
86
87
  *
87
- * @returns A new StreamingMetadataProcessor instance
88
+ * @returns An object with methods to process chunks and build metadata from a stream
88
89
  */
89
90
  createStreamExtractor: () => {
90
91
  /**
@@ -81,10 +81,11 @@ type MetadataExtractor = {
81
81
  parsedBody: unknown;
82
82
  }) => LanguageModelV1ProviderMetadata | undefined;
83
83
  /**
84
- * Creates a streaming metadata processor that can accumulate and process chunks
85
- * of a streaming response. Used to build metadata progressively during streaming.
84
+ * Creates an extractor for handling streaming responses. The returned object provides
85
+ * methods to process individual chunks and build the final metadata from the accumulated
86
+ * stream data.
86
87
  *
87
- * @returns A new StreamingMetadataProcessor instance
88
+ * @returns An object with methods to process chunks and build metadata from a stream
88
89
  */
89
90
  createStreamExtractor: () => {
90
91
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/openai-compatible",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@ai-sdk/provider": "1.0.6",
30
- "@ai-sdk/provider-utils": "2.1.2"
30
+ "@ai-sdk/provider-utils": "2.1.3"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^18",