@jeffreycao/copilot-api 2.1.11 → 2.1.12
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/main.js +1 -1
- package/dist/{server-tlEQmO0Y.js → server-di38_SOi.js} +7 -5
- package/dist/server-di38_SOi.js.map +1 -0
- package/dist/{start-DcTeH8wz.js → start-BAGQbk_n.js} +2 -2
- package/dist/{start-DcTeH8wz.js.map → start-BAGQbk_n.js.map} +1 -1
- package/package.json +1 -1
- package/dist/server-tlEQmO0Y.js.map +0 -1
package/dist/main.js
CHANGED
|
@@ -25,7 +25,7 @@ bindElectronFetch();
|
|
|
25
25
|
const { auth } = await import("./auth-PIo0IPSc.js");
|
|
26
26
|
const { debug } = await import("./debug-ChC85ySp.js");
|
|
27
27
|
const { mcp } = await import("./mcp-BG6fpi6q.js");
|
|
28
|
-
const { start } = await import("./start-
|
|
28
|
+
const { start } = await import("./start-BAGQbk_n.js");
|
|
29
29
|
await runMain(defineCommand({
|
|
30
30
|
meta: {
|
|
31
31
|
name: "copilot-api",
|
|
@@ -3724,7 +3724,8 @@ function translateAnthropicToolsToOpenAI(anthropicTools) {
|
|
|
3724
3724
|
function: {
|
|
3725
3725
|
name: tool.name,
|
|
3726
3726
|
description: tool.description,
|
|
3727
|
-
parameters: normalizeToolSchema(tool.input_schema)
|
|
3727
|
+
parameters: normalizeToolSchema(tool.input_schema),
|
|
3728
|
+
...tool.strict === void 0 ? {} : { strict: tool.strict }
|
|
3728
3729
|
}
|
|
3729
3730
|
}));
|
|
3730
3731
|
}
|
|
@@ -5082,7 +5083,7 @@ const convertToolToFunction = (tool) => ({
|
|
|
5082
5083
|
type: "function",
|
|
5083
5084
|
name: tool.name,
|
|
5084
5085
|
parameters: normalizeToolSchema(tool.input_schema),
|
|
5085
|
-
strict: false,
|
|
5086
|
+
strict: tool.strict ?? false,
|
|
5086
5087
|
...tool.description ? { description: tool.description } : {}
|
|
5087
5088
|
});
|
|
5088
5089
|
const convertDeferredToolToNamespace = (tool) => ({
|
|
@@ -5093,7 +5094,7 @@ const convertDeferredToolToNamespace = (tool) => ({
|
|
|
5093
5094
|
type: "function",
|
|
5094
5095
|
name: tool.name,
|
|
5095
5096
|
parameters: normalizeToolSchema(tool.input_schema),
|
|
5096
|
-
strict: false,
|
|
5097
|
+
strict: tool.strict ?? false,
|
|
5097
5098
|
defer_loading: true,
|
|
5098
5099
|
...tool.description ? { description: tool.description } : {}
|
|
5099
5100
|
}]
|
|
@@ -8662,7 +8663,8 @@ function registerMessagesTool(registration, registry) {
|
|
|
8662
8663
|
input_schema: registration.kind === "custom" ? CUSTOM_TOOL_INPUT_SCHEMA : registration.parameters ?? {
|
|
8663
8664
|
type: "object",
|
|
8664
8665
|
properties: {}
|
|
8665
|
-
}
|
|
8666
|
+
},
|
|
8667
|
+
...registration.kind === "custom" ? { strict: true } : {}
|
|
8666
8668
|
});
|
|
8667
8669
|
return descriptor;
|
|
8668
8670
|
}
|
|
@@ -10497,4 +10499,4 @@ server.route("/:provider/images", providerImageRoutes);
|
|
|
10497
10499
|
//#endregion
|
|
10498
10500
|
export { server };
|
|
10499
10501
|
|
|
10500
|
-
//# sourceMappingURL=server-
|
|
10502
|
+
//# sourceMappingURL=server-di38_SOi.js.map
|