@ai-sdk/provider 2.0.0-beta.1 → 2.0.0-beta.2

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,11 @@
1
1
  # @ai-sdk/provider
2
2
 
3
+ ## 2.0.0-beta.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 27deb4d: feat (provider/gateway): Add providerMetadata to embeddings response
8
+
3
9
  ## 2.0.0-beta.1
4
10
 
5
11
  ### Major Changes
package/dist/index.d.mts CHANGED
@@ -138,6 +138,12 @@ type EmbeddingModelV2<VALUE> = {
138
138
  tokens: number;
139
139
  };
140
140
  /**
141
+ Additional provider-specific metadata. They are passed through
142
+ from the provider to the AI SDK and enable provider-specific
143
+ results that can be fully encapsulated in the provider.
144
+ */
145
+ providerMetadata?: SharedV2ProviderMetadata;
146
+ /**
141
147
  Optional response information for debugging purposes.
142
148
  */
143
149
  response?: {
package/dist/index.d.ts CHANGED
@@ -138,6 +138,12 @@ type EmbeddingModelV2<VALUE> = {
138
138
  tokens: number;
139
139
  };
140
140
  /**
141
+ Additional provider-specific metadata. They are passed through
142
+ from the provider to the AI SDK and enable provider-specific
143
+ results that can be fully encapsulated in the provider.
144
+ */
145
+ providerMetadata?: SharedV2ProviderMetadata;
146
+ /**
141
147
  Optional response information for debugging purposes.
142
148
  */
143
149
  response?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/provider",
3
- "version": "2.0.0-beta.1",
3
+ "version": "2.0.0-beta.2",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",