@rulvar/openai 1.88.0 → 1.90.0

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -483,7 +483,8 @@ async function* mapResponsesStream(stream, ids, options) {
483
483
  const error = response?.error;
484
484
  yield {
485
485
  type: "error",
486
- error: failedResponseError(typeof error?.code === "string" ? error.code : void 0, error?.message ?? "response.failed")
486
+ error: failedResponseError(typeof error?.code === "string" ? error.code : void 0, error?.message ?? "response.failed"),
487
+ ...typeof response?.id === "string" ? { providerMetadata: { openai: { responseId: response.id } } } : {}
487
488
  };
488
489
  return;
489
490
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rulvar/openai",
3
- "version": "1.88.0",
3
+ "version": "1.90.0",
4
4
  "description": "Rulvar first-class provider adapter for the OpenAI Responses API, plus the openaiCompatible factory.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -23,13 +23,13 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "openai": "^6.49.0",
26
- "@rulvar/core": "1.88.0"
26
+ "@rulvar/core": "1.90.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "^22.20.1",
30
30
  "tsdown": "^0.22.14",
31
31
  "typescript": "~6.0.3",
32
- "@rulvar/testing": "1.88.0"
32
+ "@rulvar/testing": "1.90.0"
33
33
  },
34
34
  "repository": {
35
35
  "type": "git",