@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.
@@ -1604,6 +1604,7 @@ var OpenAIEmbeddingModel = class {
1604
1604
  fetch: this.config.fetch
1605
1605
  });
1606
1606
  return {
1607
+ warnings: [],
1607
1608
  embeddings: response.data.map((item) => item.embedding),
1608
1609
  usage: response.usage ? { tokens: response.usage.prompt_tokens } : void 0,
1609
1610
  response: { headers: responseHeaders, body: rawValue }
@@ -4182,22 +4183,24 @@ var OpenAIResponsesLanguageModel = class {
4182
4183
  }
4183
4184
  }
4184
4185
  };
4185
- if (modelCapabilities.isReasoningModel || (openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) === "none" && modelCapabilities.supportsNonReasoningParameters) {
4186
- if (baseArgs.temperature != null) {
4187
- baseArgs.temperature = void 0;
4188
- warnings.push({
4189
- type: "unsupported",
4190
- feature: "temperature",
4191
- details: "temperature is not supported for reasoning models"
4192
- });
4193
- }
4194
- if (baseArgs.top_p != null) {
4195
- baseArgs.top_p = void 0;
4196
- warnings.push({
4197
- type: "unsupported",
4198
- feature: "topP",
4199
- details: "topP is not supported for reasoning models"
4200
- });
4186
+ if (modelCapabilities.isReasoningModel) {
4187
+ if (!((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) === "none" && modelCapabilities.supportsNonReasoningParameters)) {
4188
+ if (baseArgs.temperature != null) {
4189
+ baseArgs.temperature = void 0;
4190
+ warnings.push({
4191
+ type: "unsupported",
4192
+ feature: "temperature",
4193
+ details: "temperature is not supported for reasoning models"
4194
+ });
4195
+ }
4196
+ if (baseArgs.top_p != null) {
4197
+ baseArgs.top_p = void 0;
4198
+ warnings.push({
4199
+ type: "unsupported",
4200
+ feature: "topP",
4201
+ details: "topP is not supported for reasoning models"
4202
+ });
4203
+ }
4201
4204
  }
4202
4205
  } else {
4203
4206
  if ((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) != null) {