@ai-sdk/openai 3.0.0-beta.85 → 3.0.0-beta.87

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.
@@ -1632,6 +1632,7 @@ var OpenAIEmbeddingModel = class {
1632
1632
  fetch: this.config.fetch
1633
1633
  });
1634
1634
  return {
1635
+ warnings: [],
1635
1636
  embeddings: response.data.map((item) => item.embedding),
1636
1637
  usage: response.usage ? { tokens: response.usage.prompt_tokens } : void 0,
1637
1638
  response: { headers: responseHeaders, body: rawValue }
@@ -4139,22 +4140,24 @@ var OpenAIResponsesLanguageModel = class {
4139
4140
  }
4140
4141
  }
4141
4142
  };
4142
- if (modelCapabilities.isReasoningModel || (openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) === "none" && modelCapabilities.supportsNonReasoningParameters) {
4143
- if (baseArgs.temperature != null) {
4144
- baseArgs.temperature = void 0;
4145
- warnings.push({
4146
- type: "unsupported",
4147
- feature: "temperature",
4148
- details: "temperature is not supported for reasoning models"
4149
- });
4150
- }
4151
- if (baseArgs.top_p != null) {
4152
- baseArgs.top_p = void 0;
4153
- warnings.push({
4154
- type: "unsupported",
4155
- feature: "topP",
4156
- details: "topP is not supported for reasoning models"
4157
- });
4143
+ if (modelCapabilities.isReasoningModel) {
4144
+ if (!((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) === "none" && modelCapabilities.supportsNonReasoningParameters)) {
4145
+ if (baseArgs.temperature != null) {
4146
+ baseArgs.temperature = void 0;
4147
+ warnings.push({
4148
+ type: "unsupported",
4149
+ feature: "temperature",
4150
+ details: "temperature is not supported for reasoning models"
4151
+ });
4152
+ }
4153
+ if (baseArgs.top_p != null) {
4154
+ baseArgs.top_p = void 0;
4155
+ warnings.push({
4156
+ type: "unsupported",
4157
+ feature: "topP",
4158
+ details: "topP is not supported for reasoning models"
4159
+ });
4160
+ }
4158
4161
  }
4159
4162
  } else {
4160
4163
  if ((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) != null) {