@ai-sdk/open-responses 2.0.58 → 2.0.59
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 +9 -0
- package/dist/index.js +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { APICallError, NoSuchModelError, UnsupportedFunctionalityError } from "@
|
|
|
2
2
|
import { SerializationError, WORKFLOW_DESERIALIZE, WORKFLOW_SERIALIZE, combineHeaders, convertToBase64, createEventSourceResponseHandler, createJsonErrorResponseHandler, createJsonResponseHandler, createProviderDefinedToolFactory, createProviderStreamError, generateId, getTopLevelMediaType, isCustomReasoning, jsonSchema, lazySchema, mapReasoningToProviderEffort, parseProviderOptions, postJsonToApi, resolveFullMediaType, serializeModelOptions, withUserAgentSuffix, zodSchema } from "@ai-sdk/provider-utils";
|
|
3
3
|
import { z } from "zod/v4";
|
|
4
4
|
//#region src/version.ts
|
|
5
|
-
const VERSION = "2.0.
|
|
5
|
+
const VERSION = "2.0.59";
|
|
6
6
|
//#endregion
|
|
7
7
|
//#region src/open-responses-extension.ts
|
|
8
8
|
const coreToolTypes = /* @__PURE__ */ new Set(["allowed_tools", "function"]);
|
|
@@ -1324,7 +1324,7 @@ function createOpenResponses(options) {
|
|
|
1324
1324
|
const getHeaders = () => withUserAgentSuffix({
|
|
1325
1325
|
...options.apiKey ? { Authorization: `Bearer ${options.apiKey}` } : {},
|
|
1326
1326
|
...typeof options.headers === "function" ? options.headers() : options.headers
|
|
1327
|
-
}, options.userAgentSuffix ?? `ai-sdk-open-responses/2.0.
|
|
1327
|
+
}, options.userAgentSuffix ?? `ai-sdk-open-responses/2.0.59`);
|
|
1328
1328
|
const createResponsesModel = (modelId) => {
|
|
1329
1329
|
return new OpenResponsesLanguageModel(modelId, {
|
|
1330
1330
|
provider: `${providerName}.responses`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/open-responses",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.59",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@ai-sdk/provider": "4.0.
|
|
33
|
-
"@ai-sdk/provider-utils": "5.0.
|
|
32
|
+
"@ai-sdk/provider": "4.0.22",
|
|
33
|
+
"@ai-sdk/provider-utils": "5.0.54"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@ai-sdk/test-server": "2.0.3",
|