ai-sdk-ollama 4.6.3 → 4.6.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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.6.4
4
+
5
+ ### Patch Changes
6
+
7
+ - fed4a15: Add `truncate` and `keep_alive` embedding model settings, forwarded to Ollama's `/api/embed`.
8
+
3
9
  ## 4.6.3
4
10
 
5
11
  ### Patch Changes
@@ -2677,6 +2677,12 @@ var OllamaEmbeddingModel = class {
2677
2677
  options: this.settings.options,
2678
2678
  ...this.settings.dimensions !== void 0 && {
2679
2679
  dimensions: this.settings.dimensions
2680
+ },
2681
+ ...this.settings.truncate !== void 0 && {
2682
+ truncate: this.settings.truncate
2683
+ },
2684
+ ...this.settings.keep_alive !== void 0 && {
2685
+ keep_alive: this.settings.keep_alive
2680
2686
  }
2681
2687
  };
2682
2688
  const response = abortSignal ? await this.config.client.embed(request, { signal: abortSignal }) : await this.config.client.embed(request);