@ai-sdk/provider 3.0.0-beta.26 → 3.0.0-beta.27

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
+ ## 3.0.0-beta.27
4
+
5
+ ### Patch Changes
6
+
7
+ - 366f50b: chore(provider): add deprecated textEmbeddingModel and textEmbedding aliases
8
+
3
9
  ## 3.0.0-beta.26
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -3210,6 +3210,19 @@ interface ProviderV3 {
3210
3210
  */
3211
3211
  embeddingModel(modelId: string): EmbeddingModelV3;
3212
3212
  /**
3213
+ Returns the text embedding model with the given id.
3214
+ The model id is then passed to the provider function to get the model.
3215
+
3216
+ @param {string} modelId - The id of the model to return.
3217
+
3218
+ @returns {EmbeddingModel} The embedding model associated with the id
3219
+
3220
+ @throws {NoSuchModelError} If no such model exists.
3221
+
3222
+ @deprecated Use `embeddingModel` instead.
3223
+ */
3224
+ textEmbeddingModel?(modelId: string): EmbeddingModelV3;
3225
+ /**
3213
3226
  Returns the image model with the given id.
3214
3227
  The model id is then passed to the provider function to get the model.
3215
3228
 
package/dist/index.d.ts CHANGED
@@ -3210,6 +3210,19 @@ interface ProviderV3 {
3210
3210
  */
3211
3211
  embeddingModel(modelId: string): EmbeddingModelV3;
3212
3212
  /**
3213
+ Returns the text embedding model with the given id.
3214
+ The model id is then passed to the provider function to get the model.
3215
+
3216
+ @param {string} modelId - The id of the model to return.
3217
+
3218
+ @returns {EmbeddingModel} The embedding model associated with the id
3219
+
3220
+ @throws {NoSuchModelError} If no such model exists.
3221
+
3222
+ @deprecated Use `embeddingModel` instead.
3223
+ */
3224
+ textEmbeddingModel?(modelId: string): EmbeddingModelV3;
3225
+ /**
3213
3226
  Returns the image model with the given id.
3214
3227
  The model id is then passed to the provider function to get the model.
3215
3228
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/provider",
3
- "version": "3.0.0-beta.26",
3
+ "version": "3.0.0-beta.27",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",