@oh-my-pi/pi-catalog 18.13.2 → 18.13.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 +17 -0
- package/README.md +1 -1
- package/dist/types/discovery/codex.d.ts +4 -5
- package/package.json +5 -5
- package/src/compat/rules/classes/openai.kdl +2 -2
- package/src/compat/rules/providers/factory-droid.kdl +24 -0
- package/src/compat/rules/providers/kimi-code.kdl +6 -0
- package/src/compat/rules/runtime/behavior.kdl +4 -4
- package/src/compat/rules.json +1 -1
- package/src/discovery/codex.ts +5 -6
- package/src/models.json +1 -1
- package/src/provider-models/cache-provider-id.ts +23 -6
- package/src/provider-models/openai-compat.ts +83 -23
- package/src/provider-models/special.ts +5 -6
package/src/discovery/codex.ts
CHANGED
|
@@ -113,12 +113,11 @@ export interface CodexModelDiscoveryResult {
|
|
|
113
113
|
models: ModelSpec<"openai-codex-responses">[];
|
|
114
114
|
etag?: string;
|
|
115
115
|
/**
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
* discovery can skip the account instead of aborting.
|
|
116
|
+
* A definitive per-account denial (401/403 auth, 402 payment). `models` is
|
|
117
|
+
* empty; unlike transport/parse failures, sibling accounts can still supply
|
|
118
|
+
* an authoritative catalog.
|
|
120
119
|
*/
|
|
121
|
-
rejectedStatus?: 401 | 403;
|
|
120
|
+
rejectedStatus?: 401 | 402 | 403;
|
|
122
121
|
}
|
|
123
122
|
|
|
124
123
|
/**
|
|
@@ -148,7 +147,7 @@ export async function fetchCodexModels(options: CodexModelDiscoveryOptions): Pro
|
|
|
148
147
|
continue;
|
|
149
148
|
}
|
|
150
149
|
|
|
151
|
-
if (response.status === 401 || response.status === 403) {
|
|
150
|
+
if (response.status === 401 || response.status === 402 || response.status === 403) {
|
|
152
151
|
return { models: [], rejectedStatus: response.status };
|
|
153
152
|
}
|
|
154
153
|
if (!response.ok) {
|