@ai-sdk/openai 4.0.75 → 4.0.78
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 +22 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +443 -509
- package/dist/index.js.map +1 -1
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal/index.js +373 -418
- package/dist/internal/index.js.map +1 -1
- package/docs/03-openai.mdx +5 -1
- package/package.json +3 -3
- package/src/responses/openai-responses-api.ts +1 -1
- package/src/responses/openai-responses-language-model-options.ts +3 -2
- package/src/responses/openai-responses-language-model.ts +28 -2
- package/src/responses/openai-responses-prepare-tools.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @ai-sdk/openai
|
|
2
2
|
|
|
3
|
+
## 4.0.78
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 94d5d6d: Support `reasoningEffortUpdate: 'none'` for GPT-6 Sol and Luna in request-level options and positioned system messages. Validate update efforts against the model's supported efforts, warning and omitting unsupported request-level updates and rejecting unsupported historical updates.
|
|
8
|
+
|
|
9
|
+
## 4.0.77
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 2abd503: Default OpenAI Responses function tools to `strict: false` when tool strict mode is omitted.
|
|
14
|
+
- Updated dependencies [af9597b]
|
|
15
|
+
- Updated dependencies [bc49f78]
|
|
16
|
+
- @ai-sdk/provider-utils@5.0.49
|
|
17
|
+
|
|
18
|
+
## 4.0.76
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [be877ff]
|
|
23
|
+
- @ai-sdk/provider-utils@5.0.48
|
|
24
|
+
|
|
3
25
|
## 4.0.75
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1515,7 +1515,7 @@ declare const openaiLanguageModelResponsesOptionsSchema: _ai_sdk_provider_utils.
|
|
|
1515
1515
|
} | undefined;
|
|
1516
1516
|
promptCacheRetention?: "in_memory" | "24h" | null | undefined;
|
|
1517
1517
|
reasoningEffort?: string | null | undefined;
|
|
1518
|
-
reasoningEffortUpdate?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1518
|
+
reasoningEffortUpdate?: "none" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1519
1519
|
reasoningMode?: "standard" | "pro" | undefined;
|
|
1520
1520
|
reasoningContext?: "auto" | "current_turn" | "all_turns" | undefined;
|
|
1521
1521
|
reasoningSummary?: string | null | undefined;
|
|
@@ -1541,7 +1541,7 @@ declare const openaiLanguageModelResponsesOptionsSchema: _ai_sdk_provider_utils.
|
|
|
1541
1541
|
}>;
|
|
1542
1542
|
type OpenAILanguageModelResponsesOptions = InferSchema<typeof openaiLanguageModelResponsesOptionsSchema>;
|
|
1543
1543
|
declare const openaiResponsesSystemMessageOptionsSchema: _ai_sdk_provider_utils.LazySchema<{
|
|
1544
|
-
reasoningEffortUpdate?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1544
|
+
reasoningEffortUpdate?: "none" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1545
1545
|
}>;
|
|
1546
1546
|
type OpenAIResponsesSystemMessageOptions = InferSchema<typeof openaiResponsesSystemMessageOptionsSchema>;
|
|
1547
1547
|
|