@etainabl/nodejs-sdk 1.3.128 → 1.3.130

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/dist/esm/index.js CHANGED
@@ -1457,6 +1457,15 @@ ${additionalInstructions.join("\n\n")}`,
1457
1457
  if (this.options.temperature !== void 0 && !model.id.startsWith("gpt-5")) {
1458
1458
  responsesInput.temperature = this.options.temperature;
1459
1459
  }
1460
+ if (this.options.cacheKey) {
1461
+ responsesInput.prompt_cache_key = this.options.cacheKey;
1462
+ }
1463
+ if (this.options.reasoning) {
1464
+ responsesInput.reasoning = this.options.reasoning;
1465
+ }
1466
+ if (this.options.verbosity) {
1467
+ responsesInput.text.verbosity = this.options.verbosity;
1468
+ }
1460
1469
  const response = await this.openai.responses.create(responsesInput);
1461
1470
  const inputTokens = response.usage?.input_tokens || 0;
1462
1471
  const outputTokens = response.usage?.output_tokens || 0;