@dsh-plus/llm-pi 0.1.14 → 0.1.15
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/lib/index.js +0 -1
- package/package.json +1 -1
- package/src/profiles.ts +3 -3
package/lib/index.js
CHANGED
|
@@ -1239,7 +1239,6 @@ function materializeModel(route, profile, entry, base, routeApi, defaultInput, d
|
|
|
1239
1239
|
validateCompat(api, profile.compat, `provider "${route}"`);
|
|
1240
1240
|
validateCompat(api, entry.compat, `provider "${route}" model "${entry.id}"`);
|
|
1241
1241
|
const compat = mergeCompat(base.api === api ? base.compat : void 0, profile.compat, entry.compat);
|
|
1242
|
-
if (compat !== void 0) validateCompat(api, compat, `provider "${route}" model "${entry.id}"`);
|
|
1243
1242
|
return {
|
|
1244
1243
|
entry: {
|
|
1245
1244
|
id: entry.id,
|
package/package.json
CHANGED
package/src/profiles.ts
CHANGED
|
@@ -218,9 +218,9 @@ function materializeModel(
|
|
|
218
218
|
profile.compat as Record<string, unknown> | undefined,
|
|
219
219
|
entry.compat as Record<string, unknown> | undefined,
|
|
220
220
|
)
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
221
|
+
// 注意:不再对合并结果复验——base.compat 来自官方内置目录(extends),
|
|
222
|
+
// 目录自身有权携带 withhold 键(如 supportsOpenAIGrammarTools);门控只约束
|
|
223
|
+
// 用户手写层(上面两次 validateCompat)。
|
|
224
224
|
return {
|
|
225
225
|
entry: {
|
|
226
226
|
id: entry.id,
|