@ai-sdk/openai 4.0.0-beta.15 → 4.0.0-beta.16

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,14 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 4.0.0-beta.16
4
+
5
+ ### Patch Changes
6
+
7
+ - 1f509d4: fix(ai): force template check on 'kind' param
8
+ - Updated dependencies [1f509d4]
9
+ - @ai-sdk/provider-utils@5.0.0-beta.7
10
+ - @ai-sdk/provider@4.0.0-beta.5
11
+
3
12
  ## 4.0.0-beta.15
4
13
 
5
14
  ### Patch Changes
package/dist/index.js CHANGED
@@ -3006,7 +3006,7 @@ async function convertToOpenAIResponsesInput({
3006
3006
  break;
3007
3007
  }
3008
3008
  case "custom": {
3009
- if (part.kind === "openai-compaction") {
3009
+ if (part.kind === "openai.compaction") {
3010
3010
  const providerOpts = (_n = part.providerOptions) == null ? void 0 : _n[providerOptionsName];
3011
3011
  const id = providerOpts == null ? void 0 : providerOpts.itemId;
3012
3012
  if (hasConversation && id != null) {
@@ -5364,7 +5364,7 @@ var OpenAIResponsesLanguageModel = class {
5364
5364
  case "compaction": {
5365
5365
  content.push({
5366
5366
  type: "custom",
5367
- kind: "openai-compaction",
5367
+ kind: "openai.compaction",
5368
5368
  providerMetadata: {
5369
5369
  [providerOptionsName]: {
5370
5370
  type: "compaction",
@@ -6007,7 +6007,7 @@ var OpenAIResponsesLanguageModel = class {
6007
6007
  } else if (value.item.type === "compaction") {
6008
6008
  controller.enqueue({
6009
6009
  type: "custom",
6010
- kind: "openai-compaction",
6010
+ kind: "openai.compaction",
6011
6011
  providerMetadata: {
6012
6012
  [providerOptionsName]: {
6013
6013
  type: "compaction",
@@ -6716,7 +6716,7 @@ var OpenAITranscriptionModel = class {
6716
6716
  };
6717
6717
 
6718
6718
  // src/version.ts
6719
- var VERSION = true ? "4.0.0-beta.15" : "0.0.0-test";
6719
+ var VERSION = true ? "4.0.0-beta.16" : "0.0.0-test";
6720
6720
 
6721
6721
  // src/openai-provider.ts
6722
6722
  function createOpenAI(options = {}) {