fss-link 1.0.78 → 1.0.79

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.
Files changed (2) hide show
  1. package/bundle/fss-link.js +33 -2
  2. package/package.json +1 -1
@@ -22379,7 +22379,7 @@ function createContentGeneratorConfig(config, authType) {
22379
22379
  return contentGeneratorConfig;
22380
22380
  }
22381
22381
  async function createContentGenerator(config, gcConfig, sessionId2) {
22382
- const version = "1.0.78";
22382
+ const version = "1.0.79";
22383
22383
  const userAgent = `FSS-Link/${version} (${process.platform}; ${process.arch})`;
22384
22384
  const baseHeaders = {
22385
22385
  "User-Agent": userAgent
@@ -372726,6 +372726,37 @@ var ModelManager = class {
372726
372726
  console.warn("Failed to apply provider settings:", error);
372727
372727
  }
372728
372728
  }
372729
+ /**
372730
+ * Get sampling parameters for the currently active model
372731
+ * @returns Record<string, unknown> containing sampling parameters like num_ctx, temperature, etc.
372732
+ */
372733
+ async getCurrentSamplingParams() {
372734
+ try {
372735
+ const activeModel = await this.getActiveModel();
372736
+ if (!activeModel) {
372737
+ return {};
372738
+ }
372739
+ const db = await this.getDb();
372740
+ const settings = await db.getProviderSettings(activeModel.authType);
372741
+ const samplingParams = {};
372742
+ if (settings["num_ctx"]) {
372743
+ samplingParams["num_ctx"] = parseInt(settings["num_ctx"], 10);
372744
+ }
372745
+ if (settings["temperature"]) {
372746
+ samplingParams["temperature"] = parseFloat(settings["temperature"]);
372747
+ }
372748
+ if (settings["top_p"]) {
372749
+ samplingParams["top_p"] = parseFloat(settings["top_p"]);
372750
+ }
372751
+ if (settings["top_k"]) {
372752
+ samplingParams["top_k"] = parseInt(settings["top_k"], 10);
372753
+ }
372754
+ return samplingParams;
372755
+ } catch (error) {
372756
+ console.warn("Failed to get current sampling params:", error);
372757
+ return {};
372758
+ }
372759
+ }
372729
372760
  };
372730
372761
  var modelManagerInstance = null;
372731
372762
  function getModelManager() {
@@ -373535,7 +373566,7 @@ async function getPackageJson() {
373535
373566
  // packages/cli/src/utils/version.ts
373536
373567
  async function getCliVersion() {
373537
373568
  const pkgJson = await getPackageJson();
373538
- return "1.0.78";
373569
+ return "1.0.79";
373539
373570
  }
373540
373571
 
373541
373572
  // packages/cli/src/ui/commands/aboutCommand.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fss-link",
3
- "version": "1.0.78",
3
+ "version": "1.0.79",
4
4
  "engines": {
5
5
  "node": ">=20.0.0"
6
6
  },