@oh-my-pi/pi-catalog 18.6.0 → 18.6.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 +22 -0
- package/dist/types/compat/auth-ids.d.ts +2 -2
- package/dist/types/compat/image-tokenization.d.ts +52 -0
- package/dist/types/compat/provider-ids.d.ts +1 -1
- package/dist/types/hosts.d.ts +4 -0
- package/dist/types/types.d.ts +14 -2
- package/package.json +4 -4
- package/src/compat/auth-ids.ts +2 -0
- package/src/compat/axes.ts +4 -0
- package/src/compat/image-tokenization.ts +166 -0
- package/src/compat/provider-ids.ts +1 -0
- package/src/compat/resolve.ts +11 -1
- package/src/compat/rules/auth/_order.kdl +1 -1
- package/src/compat/rules/auth/snowflake.kdl +11 -0
- package/src/compat/rules/classes/anthropic.kdl +72 -7
- package/src/compat/rules/classes/gemini.kdl +12 -0
- package/src/compat/rules/classes/openai.kdl +102 -0
- package/src/compat/rules/providers/google-antigravity.kdl +3 -0
- package/src/compat/rules/providers/image-tokenization.kdl +42 -0
- package/src/compat/rules/providers/muse-code.kdl +7 -0
- package/src/compat/rules/providers/openai-codex.kdl +1 -0
- package/src/compat/rules/providers/snowflake.kdl +135 -0
- package/src/compat/rules.json +1 -1
- package/src/hosts.ts +2 -0
- package/src/models.json +1 -1
- package/src/provider-models/google.ts +2 -0
- package/src/provider-models/special.ts +2 -2
- package/src/types.ts +14 -1
package/src/hosts.ts
CHANGED
|
@@ -25,6 +25,8 @@ interface HostClassSpec {
|
|
|
25
25
|
|
|
26
26
|
export const KNOWN_HOSTS = {
|
|
27
27
|
openai: { providers: ["openai"], urlMarkers: ["api.openai.com"] },
|
|
28
|
+
/** URL-only: a Codex provider rerouted through a proxy does not imply the subscription backend's capabilities. */
|
|
29
|
+
openaiCodex: { urlMarkers: ["chatgpt.com/backend-api", "chat.openai.com/backend-api"] },
|
|
28
30
|
azureOpenAI: {
|
|
29
31
|
providers: ["azure"],
|
|
30
32
|
urlMarkers: [".openai.azure.com", "azure.com/openai", "models.inference.ai.azure.com"],
|