openfox 2.0.6 → 2.0.7
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/{chunk-HMTROIVE.js → chunk-4UOVP7FK.js} +4 -3
- package/dist/{chunk-L5XRDDFW.js → chunk-7CNWK2WI.js} +2 -2
- package/dist/cli/dev.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/package.json +1 -1
- package/dist/{serve-L7ZELNVN.js → serve-XVTRORFM.js} +2 -2
- package/dist/server/index.js +1 -1
- package/dist/web/assets/{index-Cwshb4LW.js → index-BxfO7JdZ.js} +20 -20
- package/dist/web/index.html +1 -1
- package/dist/web/sw.js +1 -1
- package/package.json +1 -1
|
@@ -5818,7 +5818,7 @@ import { Router as Router6 } from "express";
|
|
|
5818
5818
|
import { spawn as spawn5 } from "child_process";
|
|
5819
5819
|
|
|
5820
5820
|
// src/constants.ts
|
|
5821
|
-
var VERSION = "2.0.
|
|
5821
|
+
var VERSION = "2.0.7";
|
|
5822
5822
|
|
|
5823
5823
|
// src/server/routes/auto-update.ts
|
|
5824
5824
|
var updateInProgress = false;
|
|
@@ -6547,10 +6547,11 @@ async function createServerHandle(config4) {
|
|
|
6547
6547
|
});
|
|
6548
6548
|
app.get("/api/providers/models", async (req, res) => {
|
|
6549
6549
|
const url = req.query["url"];
|
|
6550
|
+
const apiKey = req.query["apiKey"];
|
|
6550
6551
|
if (!url) return res.status(400).json({ error: "url is required" });
|
|
6551
6552
|
try {
|
|
6552
6553
|
const { fetchModelsWithContext } = await import("./provider-manager-YA2WALTF.js");
|
|
6553
|
-
const models = await fetchModelsWithContext(url);
|
|
6554
|
+
const models = await fetchModelsWithContext(url, apiKey);
|
|
6554
6555
|
if (models.length === 0) {
|
|
6555
6556
|
return res.status(404).json({ error: `No models found at ${buildModelsUrl(url)}`, url });
|
|
6556
6557
|
}
|
|
@@ -7027,4 +7028,4 @@ export {
|
|
|
7027
7028
|
createServerHandle,
|
|
7028
7029
|
createServer
|
|
7029
7030
|
};
|
|
7030
|
-
//# sourceMappingURL=chunk-
|
|
7031
|
+
//# sourceMappingURL=chunk-4UOVP7FK.js.map
|
|
@@ -193,7 +193,7 @@ async function runCli(options) {
|
|
|
193
193
|
if (!configExists) {
|
|
194
194
|
await runNetworkSetup(mode);
|
|
195
195
|
}
|
|
196
|
-
const { runServe } = await import("./serve-
|
|
196
|
+
const { runServe } = await import("./serve-XVTRORFM.js");
|
|
197
197
|
const serveOptions = { mode };
|
|
198
198
|
if (values.port) serveOptions.port = parseInt(values.port);
|
|
199
199
|
if (values["no-browser"] === true) serveOptions.openBrowser = false;
|
|
@@ -205,4 +205,4 @@ async function runCli(options) {
|
|
|
205
205
|
export {
|
|
206
206
|
runCli
|
|
207
207
|
};
|
|
208
|
-
//# sourceMappingURL=chunk-
|
|
208
|
+
//# sourceMappingURL=chunk-7CNWK2WI.js.map
|
package/dist/cli/dev.js
CHANGED
package/dist/cli/index.js
CHANGED
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
VERSION,
|
|
3
3
|
createServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4UOVP7FK.js";
|
|
5
5
|
import "./chunk-NZCKCJH5.js";
|
|
6
6
|
import "./chunk-LIOHT26X.js";
|
|
7
7
|
import "./chunk-KGZMKMEZ.js";
|
|
@@ -188,4 +188,4 @@ async function runServe(options) {
|
|
|
188
188
|
export {
|
|
189
189
|
runServe
|
|
190
190
|
};
|
|
191
|
-
//# sourceMappingURL=serve-
|
|
191
|
+
//# sourceMappingURL=serve-XVTRORFM.js.map
|