fss-link 1.2.16 → 1.2.17
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/bundle/fss-link.js +11 -6
- package/package.json +1 -1
package/bundle/fss-link.js
CHANGED
|
@@ -22343,7 +22343,7 @@ async function createContentGeneratorConfig(config, authType) {
|
|
|
22343
22343
|
async function createContentGenerator(config, gcConfig, sessionId2) {
|
|
22344
22344
|
if (DEBUG_CONTENT)
|
|
22345
22345
|
console.log(`\u{1F41B} DEBUG createContentGenerator: authType=${config.authType}, apiKey=${config.apiKey}, baseUrl=${config.baseUrl}`);
|
|
22346
|
-
const version = "1.2.
|
|
22346
|
+
const version = "1.2.17";
|
|
22347
22347
|
const userAgent = `FSS-Link/${version} (${process.platform}; ${process.arch})`;
|
|
22348
22348
|
const baseHeaders = {
|
|
22349
22349
|
"User-Agent": userAgent
|
|
@@ -86144,15 +86144,20 @@ var init_modelManager = __esm({
|
|
|
86144
86144
|
/**
|
|
86145
86145
|
* Normalize base URLs for OpenAI-compatible endpoints
|
|
86146
86146
|
* Inspired by BobAI proxy's excellent URL normalization
|
|
86147
|
+
*
|
|
86148
|
+
* CRITICAL: Only strip /v1 for OpenAI provider where SDK adds it automatically.
|
|
86149
|
+
* For LM Studio and Ollama, /v1 is part of their actual API path.
|
|
86147
86150
|
*/
|
|
86148
86151
|
normalizeEndpointUrl(url2, authType) {
|
|
86149
86152
|
if (!url2) return void 0;
|
|
86150
86153
|
let normalized2 = url2.trim();
|
|
86151
|
-
if (normalized2.endsWith("/v1")) {
|
|
86152
|
-
if (DEBUG_MODEL) console.log(`\u{1F527} [URL-NORMALIZE] Stripping /v1 suffix from: ${normalized2}`);
|
|
86154
|
+
if (normalized2.endsWith("/v1") && authType === AuthType.USE_OPENAI) {
|
|
86155
|
+
if (DEBUG_MODEL) console.log(`\u{1F527} [URL-NORMALIZE] Stripping /v1 suffix from OpenAI endpoint: ${normalized2}`);
|
|
86153
86156
|
normalized2 = normalized2.slice(0, -3);
|
|
86154
86157
|
}
|
|
86155
|
-
|
|
86158
|
+
if (!normalized2.endsWith("/v1")) {
|
|
86159
|
+
normalized2 = normalized2.replace(/\/+$/, "");
|
|
86160
|
+
}
|
|
86156
86161
|
if (!normalized2.startsWith("http://localhost") && !normalized2.startsWith("http://127.0.0.1") && normalized2.startsWith("http://")) {
|
|
86157
86162
|
if (DEBUG_MODEL) console.log(`\u{1F527} [URL-NORMALIZE] Upgrading HTTP to HTTPS: ${normalized2}`);
|
|
86158
86163
|
normalized2 = normalized2.replace("http://", "https://");
|
|
@@ -95410,7 +95415,7 @@ async function getPackageJson() {
|
|
|
95410
95415
|
// packages/cli/src/utils/version.ts
|
|
95411
95416
|
async function getCliVersion() {
|
|
95412
95417
|
const pkgJson = await getPackageJson();
|
|
95413
|
-
return "1.2.
|
|
95418
|
+
return "1.2.17";
|
|
95414
95419
|
}
|
|
95415
95420
|
|
|
95416
95421
|
// packages/cli/src/ui/commands/aboutCommand.ts
|
|
@@ -95462,7 +95467,7 @@ import open4 from "open";
|
|
|
95462
95467
|
import process11 from "node:process";
|
|
95463
95468
|
|
|
95464
95469
|
// packages/cli/src/generated/git-commit.ts
|
|
95465
|
-
var GIT_COMMIT_INFO = "
|
|
95470
|
+
var GIT_COMMIT_INFO = "6daf471c";
|
|
95466
95471
|
|
|
95467
95472
|
// packages/cli/src/ui/commands/bugCommand.ts
|
|
95468
95473
|
init_dist2();
|