pi-free 2.0.11 → 2.0.13
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/CHANGELOG.md +628 -576
- package/README.md +29 -42
- package/banner.svg +1 -1
- package/config.ts +99 -2
- package/constants.ts +3 -1
- package/index.ts +5 -3
- package/lib/built-in-toggle.ts +120 -60
- package/lib/registry.ts +40 -16
- package/lib/util.ts +13 -12
- package/package.json +2 -2
- package/providers/cline/cline-models.ts +3 -10
- package/providers/crofai/crofai.ts +5 -1
- package/providers/deepinfra/deepinfra.ts +7 -5
- package/providers/dynamic-built-in/index.ts +129 -33
- package/providers/model-fetcher.ts +2 -13
- package/providers/novita/novita.ts +205 -0
- package/providers/nvidia/nvidia.ts +4 -6
- package/providers/opencode-session.ts +371 -33
- package/providers/sambanova/sambanova.ts +8 -2
- package/providers/together/together.ts +6 -9
- package/providers/zenmux/zenmux.ts +6 -4
|
@@ -97,8 +97,9 @@ async function fetchZenmuxModels(
|
|
|
97
97
|
|
|
98
98
|
_logger.info(`[zenmux] Fetched ${models.length} models`);
|
|
99
99
|
|
|
100
|
-
return models.map(
|
|
101
|
-
|
|
100
|
+
return models.map((m) => {
|
|
101
|
+
const hasPricings = m.pricings !== undefined;
|
|
102
|
+
return {
|
|
102
103
|
id: m.id,
|
|
103
104
|
name: m.display_name || m.id,
|
|
104
105
|
reasoning: m.capabilities?.reasoning ?? false,
|
|
@@ -114,8 +115,9 @@ async function fetchZenmuxModels(
|
|
|
114
115
|
contextWindow: m.context_length || 128000,
|
|
115
116
|
maxTokens: m.context_length ? Math.floor(m.context_length / 2) : 4096,
|
|
116
117
|
compat: getProxyModelCompat(m),
|
|
117
|
-
|
|
118
|
-
|
|
118
|
+
_pricingKnown: hasPricings,
|
|
119
|
+
} as ProviderModelConfig & { _pricingKnown?: boolean };
|
|
120
|
+
});
|
|
119
121
|
} catch (error) {
|
|
120
122
|
_logger.error("[zenmux] Failed to fetch models:", {
|
|
121
123
|
error: error instanceof Error ? error.message : String(error),
|