@aliou/pi-neuralwatt 0.15.0 → 0.15.1
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.
|
@@ -65,12 +65,15 @@ const KIMI_K3: NeuralwattModelFamily = {
|
|
|
65
65
|
},
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
// MoonshotAI.
|
|
69
|
-
//
|
|
70
|
-
// map with `off: null`, matching the upstream binary thinking toggle.
|
|
68
|
+
// MoonshotAI. K2.7 Code has mandatory reasoning with no selectable efforts
|
|
69
|
+
// (`supported_efforts: []`), so `buildThinkingLevelMap` nulls out every level.
|
|
71
70
|
const KIMI_K2_7_CODE: NeuralwattModelFamily = {
|
|
72
71
|
cost: { input: 0.95, output: 4.0, cacheRead: 0.095 },
|
|
73
72
|
vision: true,
|
|
73
|
+
reasoningMetadata: {
|
|
74
|
+
supported_efforts: [],
|
|
75
|
+
mandatory: true,
|
|
76
|
+
},
|
|
74
77
|
};
|
|
75
78
|
|
|
76
79
|
// Qwen. Qwen3.6 35B only advertises `high` and `none`.
|
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Migration } from "@aliou/pi-utils-settings";
|
|
2
2
|
import type { NeuralwattConfig } from "../types";
|
|
3
3
|
|
|
4
|
-
export { disableLegacyModelIdsByDefaultMigration } from "./01-disable-legacy-model-ids-by-default";
|
|
5
4
|
export {
|
|
6
5
|
backupConfig,
|
|
7
6
|
flatToNestedConfigMigration,
|
|
@@ -9,7 +8,6 @@ export {
|
|
|
9
8
|
export { renameHiddenToEarlyAccessMigration } from "./03-rename-hidden-to-early-access";
|
|
10
9
|
export { enableAliasesForLegacyUsersMigration } from "./04-enable-aliases-for-legacy-users";
|
|
11
10
|
|
|
12
|
-
import { disableLegacyModelIdsByDefaultMigration } from "./01-disable-legacy-model-ids-by-default";
|
|
13
11
|
import { flatToNestedConfigMigration } from "./02-flat-to-nested-config";
|
|
14
12
|
import { renameHiddenToEarlyAccessMigration } from "./03-rename-hidden-to-early-access";
|
|
15
13
|
import { enableAliasesForLegacyUsersMigration } from "./04-enable-aliases-for-legacy-users";
|
|
@@ -18,7 +16,6 @@ import { enableAliasesForLegacyUsersMigration } from "./04-enable-aliases-for-le
|
|
|
18
16
|
// applies them in sequence on the raw config record, so they are cast to the
|
|
19
17
|
// current config type for the array.
|
|
20
18
|
export const migrations = [
|
|
21
|
-
disableLegacyModelIdsByDefaultMigration,
|
|
22
19
|
flatToNestedConfigMigration,
|
|
23
20
|
renameHiddenToEarlyAccessMigration,
|
|
24
21
|
enableAliasesForLegacyUsersMigration,
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { Migration } from "@aliou/pi-utils-settings";
|
|
2
|
-
|
|
3
|
-
/** Flat config shape before the 0.8.x nested migration. */
|
|
4
|
-
interface FlatNeuralwattConfig {
|
|
5
|
-
$schema?: string;
|
|
6
|
-
quotaCommand?: boolean;
|
|
7
|
-
quotaWarnings?: boolean;
|
|
8
|
-
subBarIntegration?: boolean;
|
|
9
|
-
includeLegacyModelIds?: boolean;
|
|
10
|
-
includeHiddenModels?: boolean;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function isPreviousConfigWithoutLegacyDefault(
|
|
14
|
-
config: FlatNeuralwattConfig,
|
|
15
|
-
): boolean {
|
|
16
|
-
return config.includeLegacyModelIds === undefined;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const disableLegacyModelIdsByDefaultMigration: Migration<FlatNeuralwattConfig> =
|
|
20
|
-
{
|
|
21
|
-
name: "disable-legacy-model-ids-by-default",
|
|
22
|
-
version: "0.8.0",
|
|
23
|
-
shouldRun: isPreviousConfigWithoutLegacyDefault,
|
|
24
|
-
message:
|
|
25
|
-
"[neuralwatt] legacy model IDs (ids including the provider and the quantization) are disabled by default. You can enable them with /neuralwatt:settings.",
|
|
26
|
-
run: (config) => ({
|
|
27
|
-
...config,
|
|
28
|
-
includeLegacyModelIds: false,
|
|
29
|
-
}),
|
|
30
|
-
};
|