@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsh-plus/llm-pi",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "dsh-plus service+ui plugin: 基于 PiAiAdapter 的自定义 LLM 路由(全量 compat、模型继承、models.dev 目录兜底)",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
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
- if (compat !== undefined) {
222
- validateCompat(api, compat, `provider "${route}" model "${entry.id}"`)
223
- }
221
+ // 注意:不再对合并结果复验——base.compat 来自官方内置目录(extends),
222
+ // 目录自身有权携带 withhold 键(如 supportsOpenAIGrammarTools);门控只约束
223
+ // 用户手写层(上面两次 validateCompat)。
224
224
  return {
225
225
  entry: {
226
226
  id: entry.id,