@oh-my-pi/pi-catalog 18.4.2 → 18.4.3
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 +26 -0
- package/dist/types/compat/types.d.ts +4 -0
- package/dist/types/provider-models/openai-compat.d.ts +10 -7
- package/dist/types/types.d.ts +6 -0
- package/package.json +4 -4
- package/src/build.ts +5 -0
- package/src/compat/axes.ts +3 -0
- package/src/compat/collapse.ts +11 -2
- package/src/compat/rules/README.md +1 -1
- package/src/compat/rules/auth/commandcode.kdl +10 -4
- package/src/compat/rules/classes/anthropic.kdl +30 -0
- package/src/compat/rules/classes/gemini.kdl +11 -0
- package/src/compat/rules/classes/openai.kdl +22 -0
- package/src/compat/rules/classes/xai.kdl +6 -0
- package/src/compat/rules/providers/anthropic.kdl +6 -0
- package/src/compat/rules/providers/commandcode.kdl +223 -76
- package/src/compat/rules/providers/openai-codex.kdl +3 -2
- package/src/compat/rules/providers/openai.kdl +0 -6
- package/src/compat/rules/providers/web.kdl +8 -0
- package/src/compat/rules/runtime/behavior.kdl +7 -2
- package/src/compat/rules/taxonomy/_collapse.kdl +3 -0
- package/src/compat/rules.json +1 -1
- package/src/compat/types.ts +11 -1
- package/src/models.json +1 -1
- package/src/provider-models/openai-compat.ts +19 -11
- package/src/types.ts +6 -0
package/src/compat/types.ts
CHANGED
|
@@ -377,8 +377,17 @@ export type CompiledAuthValidation =
|
|
|
377
377
|
maxTokensField?: "max_tokens" | "max_completion_tokens";
|
|
378
378
|
maxTokens?: number;
|
|
379
379
|
optional?: boolean;
|
|
380
|
+
/** With `optional`: a 403 also trusts the key; only a 401 rejects it. */
|
|
381
|
+
trustForbidden?: boolean;
|
|
382
|
+
}
|
|
383
|
+
| {
|
|
384
|
+
kind: "anthropic-messages";
|
|
385
|
+
label?: string;
|
|
386
|
+
baseUrl: string;
|
|
387
|
+
model: string;
|
|
388
|
+
optional?: boolean;
|
|
389
|
+
trustForbidden?: boolean;
|
|
380
390
|
}
|
|
381
|
-
| { kind: "anthropic-messages"; label?: string; baseUrl: string; model: string; optional?: boolean }
|
|
382
391
|
| {
|
|
383
392
|
kind: "models-endpoint";
|
|
384
393
|
label?: string;
|
|
@@ -388,6 +397,7 @@ export type CompiledAuthValidation =
|
|
|
388
397
|
/** Hook returning extra request headers (may throw a configuration error). */
|
|
389
398
|
headersHook?: string;
|
|
390
399
|
optional?: boolean;
|
|
400
|
+
trustForbidden?: boolean;
|
|
391
401
|
};
|
|
392
402
|
|
|
393
403
|
/** Paste-an-API-key login: optional browser hint, prompt, optional validation. */
|