@ai-sdk/provider 1.0.4 → 1.0.5

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
+ ## 1.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 0a699f1: feat: add reasoning token support
8
+
3
9
  ## 1.0.4
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -936,6 +936,11 @@ type LanguageModelV1 = {
936
936
  */
937
937
  text?: string;
938
938
  /**
939
+ Reasoning text that the model has generated. Can be undefined if the model
940
+ has only generated text.
941
+ */
942
+ reasoning?: string;
943
+ /**
939
944
  Tool calls that the model has generated. Can be undefined if the
940
945
  model has only generated text.
941
946
  */
@@ -1070,6 +1075,9 @@ type LanguageModelV1 = {
1070
1075
  type LanguageModelV1StreamPart = {
1071
1076
  type: 'text-delta';
1072
1077
  textDelta: string;
1078
+ } | {
1079
+ type: 'reasoning';
1080
+ textDelta: string;
1073
1081
  } | ({
1074
1082
  type: 'tool-call';
1075
1083
  } & LanguageModelV1FunctionToolCall) | {
package/dist/index.d.ts CHANGED
@@ -936,6 +936,11 @@ type LanguageModelV1 = {
936
936
  */
937
937
  text?: string;
938
938
  /**
939
+ Reasoning text that the model has generated. Can be undefined if the model
940
+ has only generated text.
941
+ */
942
+ reasoning?: string;
943
+ /**
939
944
  Tool calls that the model has generated. Can be undefined if the
940
945
  model has only generated text.
941
946
  */
@@ -1070,6 +1075,9 @@ type LanguageModelV1 = {
1070
1075
  type LanguageModelV1StreamPart = {
1071
1076
  type: 'text-delta';
1072
1077
  textDelta: string;
1078
+ } | {
1079
+ type: 'reasoning';
1080
+ textDelta: string;
1073
1081
  } | ({
1074
1082
  type: 'tool-call';
1075
1083
  } & LanguageModelV1FunctionToolCall) | {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/provider",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",