@ai-sdk/provider 0.0.13 → 0.0.14

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/dist/index.d.mts CHANGED
@@ -768,6 +768,13 @@ type LanguageModelV1 = {
768
768
  */
769
769
  readonly defaultObjectGenerationMode: 'json' | 'tool' | undefined;
770
770
  /**
771
+ Flag whether this model supports image URLs. Default is `true`.
772
+
773
+ When the flag is set to `false`, the AI SDK will download the image and
774
+ pass the image data to the model.
775
+ */
776
+ readonly supportsImageUrls?: boolean;
777
+ /**
771
778
  Generates a language model output (non-streaming).
772
779
 
773
780
  Naming: "do" prefix to prevent accidental direct usage of the method
package/dist/index.d.ts CHANGED
@@ -768,6 +768,13 @@ type LanguageModelV1 = {
768
768
  */
769
769
  readonly defaultObjectGenerationMode: 'json' | 'tool' | undefined;
770
770
  /**
771
+ Flag whether this model supports image URLs. Default is `true`.
772
+
773
+ When the flag is set to `false`, the AI SDK will download the image and
774
+ pass the image data to the model.
775
+ */
776
+ readonly supportsImageUrls?: boolean;
777
+ /**
771
778
  Generates a language model output (non-streaming).
772
779
 
773
780
  Naming: "do" prefix to prevent accidental direct usage of the method
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/provider",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",