@docyrus/docyrus 0.0.71 → 0.0.73
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/agent-loader.js +7 -4
- package/agent-loader.js.map +2 -2
- package/main.js +8 -17
- package/main.js.map +2 -2
- package/package.json +1 -1
- package/server-loader.js +144 -82
- package/server-loader.js.map +2 -2
package/agent-loader.js
CHANGED
|
@@ -1140,6 +1140,7 @@ var import_picocolors4 = __toESM(require_picocolors());
|
|
|
1140
1140
|
// src/agent/envStore.ts
|
|
1141
1141
|
var import_promises = require("node:fs/promises");
|
|
1142
1142
|
var import_node_path = require("node:path");
|
|
1143
|
+
var LEGACY_AZURE_OPENAI_DEFAULT_API_VERSION = "2025-04-01-preview";
|
|
1143
1144
|
function createDefaultState() {
|
|
1144
1145
|
return {
|
|
1145
1146
|
version: 1,
|
|
@@ -1154,6 +1155,9 @@ function normalizeState(state) {
|
|
|
1154
1155
|
if (!normalizedKey || !normalizedValue) {
|
|
1155
1156
|
continue;
|
|
1156
1157
|
}
|
|
1158
|
+
if (normalizedKey === "AZURE_OPENAI_API_VERSION" && normalizedValue === LEGACY_AZURE_OPENAI_DEFAULT_API_VERSION) {
|
|
1159
|
+
continue;
|
|
1160
|
+
}
|
|
1157
1161
|
values[normalizedKey] = normalizedValue;
|
|
1158
1162
|
}
|
|
1159
1163
|
return {
|
|
@@ -1822,8 +1826,7 @@ function getProviderFormFields(params) {
|
|
|
1822
1826
|
name: "apiVersion",
|
|
1823
1827
|
title: "API version",
|
|
1824
1828
|
component: "text",
|
|
1825
|
-
|
|
1826
|
-
placeholder: "2025-04-01-preview"
|
|
1829
|
+
placeholder: "Leave blank to use pi default (v1)"
|
|
1827
1830
|
}
|
|
1828
1831
|
];
|
|
1829
1832
|
case "amazon-bedrock":
|
|
@@ -2509,8 +2512,8 @@ async function runAzureFlow(clack, pico, dependencies) {
|
|
|
2509
2512
|
return false;
|
|
2510
2513
|
}
|
|
2511
2514
|
const apiVersion = await clack.text({
|
|
2512
|
-
message: `API version ${pico.dim("(leave blank to use pi
|
|
2513
|
-
placeholder: "
|
|
2515
|
+
message: `API version ${pico.dim("(leave blank to use pi default (v1))")}:`,
|
|
2516
|
+
placeholder: "v1"
|
|
2514
2517
|
});
|
|
2515
2518
|
if (clack.isCancel(apiVersion)) {
|
|
2516
2519
|
return false;
|