@agentproto/model-catalog 0.4.0 → 0.5.0
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/dist/access/index.d.ts +5 -5
- package/dist/audio/index.d.ts +1 -1
- package/dist/{audio-DcaMq62v.d.ts → audio-BbeLA_4x.d.ts} +1 -0
- package/dist/{base-DWHjM4_d.d.ts → base-C4kz9Dxc.d.ts} +45 -1
- package/dist/{catalog-7Uyx_VEW.d.ts → catalog-BPDMuxzf.d.ts} +1 -1
- package/dist/{chunk-XEYWCRAJ.mjs → chunk-TQSSXYY5.mjs} +9 -3
- package/dist/chunk-TQSSXYY5.mjs.map +1 -0
- package/dist/curation/index.d.ts +4 -4
- package/dist/{evaluate-9mZ_5dki.d.ts → evaluate-CVzfLCd0.d.ts} +2 -2
- package/dist/{index-DmTOtjGU.d.ts → index-CgOxudo5.d.ts} +3 -3
- package/dist/{index-DiJfHoVM.d.ts → index-DSgqNd3Z.d.ts} +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.mjs +1 -1
- package/dist/llm/index.d.ts +2 -2
- package/dist/overlay/index.d.ts +3 -3
- package/dist/picker/index.d.ts +6 -6
- package/dist/route-identity/index.d.ts +3 -2
- package/dist/route-identity/index.mjs +3758 -0
- package/dist/route-identity/index.mjs.map +1 -1
- package/dist/schema/index.d.ts +9 -2
- package/dist/schema/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-XEYWCRAJ.mjs.map +0 -1
package/dist/access/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { A as AccessDecision, a as AccessEffect, b as AccessEvalInput, c as AccessRule, d as AccessTarget, e as AppScope, f as evaluateAccess } from '../evaluate-
|
|
2
|
-
import { R as ResolvedModel } from '../index-
|
|
3
|
-
import '../base-
|
|
1
|
+
export { A as AccessDecision, a as AccessEffect, b as AccessEvalInput, c as AccessRule, d as AccessTarget, e as AppScope, f as evaluateAccess } from '../evaluate-CVzfLCd0.js';
|
|
2
|
+
import { R as ResolvedModel } from '../index-DSgqNd3Z.js';
|
|
3
|
+
import '../base-C4kz9Dxc.js';
|
|
4
4
|
import 'zod';
|
|
5
|
-
import '../catalog-
|
|
5
|
+
import '../catalog-BPDMuxzf.js';
|
|
6
6
|
import '../image/index.js';
|
|
7
7
|
import '../video/index.js';
|
|
8
8
|
import '../audio/index.js';
|
|
9
|
-
import '../audio-
|
|
9
|
+
import '../audio-BbeLA_4x.js';
|
|
10
10
|
import '../schema/voice.js';
|
|
11
11
|
|
|
12
12
|
/**
|
package/dist/audio/index.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ declare const CatalogProviderSchema: z.ZodEnum<{
|
|
|
62
62
|
"openai-realtime": "openai-realtime";
|
|
63
63
|
openrouter: "openrouter";
|
|
64
64
|
replicate: "replicate";
|
|
65
|
+
requesty: "requesty";
|
|
65
66
|
xai: "xai";
|
|
66
67
|
}>;
|
|
67
68
|
type CatalogProvider = z.infer<typeof CatalogProviderSchema>;
|
|
@@ -83,6 +84,48 @@ type CatalogProvider = z.infer<typeof CatalogProviderSchema>;
|
|
|
83
84
|
* per Claude adapter, not here.
|
|
84
85
|
*/
|
|
85
86
|
declare const PROVIDER_KEY_ENV: Record<CatalogProvider, string>;
|
|
87
|
+
/**
|
|
88
|
+
* ADDITIONAL env-var names that carry the *same* provider key, beyond the one
|
|
89
|
+
* canonical name in {@link PROVIDER_KEY_ENV}. Some consumers read a different
|
|
90
|
+
* alias for a provider than the name we canonically inject, so a key set once
|
|
91
|
+
* (`agentproto auth provider set <provider> <key>`) must be able to satisfy
|
|
92
|
+
* every alias, not just the canonical name. `providers-store` derives its
|
|
93
|
+
* `PROVIDER_ENV_ALIASES` from this and injects the canonical name PLUS every
|
|
94
|
+
* alias at `serve` boot (explicit env still wins, per env name).
|
|
95
|
+
*
|
|
96
|
+
* Aliases are VERIFIED against a real consumer, never guessed — an alias we
|
|
97
|
+
* cannot prove a consumer reads does not belong here:
|
|
98
|
+
*
|
|
99
|
+
* - `google: ["GOOGLE_API_KEY"]` — mastracode / `@mastra/core`. Its
|
|
100
|
+
* `PROVIDER_REGISTRY.google.apiKeyEnvVar` is the alias array
|
|
101
|
+
* `["GOOGLE_API_KEY", "GOOGLE_GENERATIVE_AI_API_KEY"]`, but
|
|
102
|
+
* `@mastra/code-sdk`'s `getApiKeyEnvVar()` collapses it to `envVars[0]`
|
|
103
|
+
* (`GOOGLE_API_KEY`) before testing `Boolean(process.env[…])`. So mastracode
|
|
104
|
+
* consults ONLY `GOOGLE_API_KEY`; our canonical `GOOGLE_GENERATIVE_AI_API_KEY`
|
|
105
|
+
* is invisible to it. (Confirmed in the installed mastracode 0.26.x tree.)
|
|
106
|
+
* - `moonshot: ["MOONSHOT_AI_API_KEY"]` — mastracode again, but via a HARDCODED
|
|
107
|
+
* branch that bypasses the registry entirely:
|
|
108
|
+
* `@mastra/code-sdk/dist/agents/mastracode-gateway.js:331-333` does
|
|
109
|
+
* `if (args.providerId === "moonshotai") { if (!process.env.MOONSHOT_AI_API_KEY) throw … }`.
|
|
110
|
+
* It reads `MOONSHOT_AI_API_KEY` (note the `_AI_`); we inject `MOONSHOT_API_KEY`
|
|
111
|
+
* via {@link PROVIDER_KEY_ENV}. Because the name is hardcoded, not
|
|
112
|
+
* registry-declared, the next reader cannot discover it from the registry —
|
|
113
|
+
* hence this comment. (The provider slug drifts too: `moonshotai` upstream vs
|
|
114
|
+
* our `moonshot`; the alias handles the env NAME, which is what matters here.)
|
|
115
|
+
*
|
|
116
|
+
* `gemini-live` is deliberately absent: no consumer of that provider is known
|
|
117
|
+
* to read `GOOGLE_API_KEY`, so per the verify-not-guess rule it stays out. The
|
|
118
|
+
* drift set is capped: across the providers we share with mastracode, only
|
|
119
|
+
* `google` and `moonshot` diverge — anthropic / openai / openrouter / xai /
|
|
120
|
+
* mistral / minimax (and the non-catalog groq) all match, so none are added.
|
|
121
|
+
*
|
|
122
|
+
* `Partial` because most providers have no known alias — a provider absent
|
|
123
|
+
* here just gets its single canonical name injected.
|
|
124
|
+
*/
|
|
125
|
+
declare const PROVIDER_KEY_ENV_ALIASES: {
|
|
126
|
+
google: string[];
|
|
127
|
+
moonshot: string[];
|
|
128
|
+
};
|
|
86
129
|
declare const baseEntryShape: {
|
|
87
130
|
readonly id: z.ZodString;
|
|
88
131
|
readonly name: z.ZodString;
|
|
@@ -101,6 +144,7 @@ declare const baseEntryShape: {
|
|
|
101
144
|
"openai-realtime": "openai-realtime";
|
|
102
145
|
openrouter: "openrouter";
|
|
103
146
|
replicate: "replicate";
|
|
147
|
+
requesty: "requesty";
|
|
104
148
|
xai: "xai";
|
|
105
149
|
}>;
|
|
106
150
|
readonly providerId: z.ZodString;
|
|
@@ -126,4 +170,4 @@ declare const baseEntryShape: {
|
|
|
126
170
|
readonly aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
127
171
|
};
|
|
128
172
|
|
|
129
|
-
export { type CatalogPriceTier as C, type Lifecycle as L, type ModelKind as M, type NsfwPolicy as N, PROVIDER_KEY_ENV as P, CatalogPriceTierSchema as a, type CatalogProvider as b, CatalogProviderSchema as c, LifecycleSchema as d, ModelKindSchema as e, NsfwPolicySchema as f,
|
|
173
|
+
export { type CatalogPriceTier as C, type Lifecycle as L, type ModelKind as M, type NsfwPolicy as N, PROVIDER_KEY_ENV as P, CatalogPriceTierSchema as a, type CatalogProvider as b, CatalogProviderSchema as c, LifecycleSchema as d, ModelKindSchema as e, NsfwPolicySchema as f, PROVIDER_KEY_ENV_ALIASES as g, baseEntryShape as h };
|
|
@@ -24,6 +24,7 @@ var CatalogProviderSchema = z.enum([
|
|
|
24
24
|
"openai-realtime",
|
|
25
25
|
"openrouter",
|
|
26
26
|
"replicate",
|
|
27
|
+
"requesty",
|
|
27
28
|
"xai"
|
|
28
29
|
]);
|
|
29
30
|
var PROVIDER_KEY_ENV = {
|
|
@@ -40,8 +41,13 @@ var PROVIDER_KEY_ENV = {
|
|
|
40
41
|
"openai-realtime": "OPENAI_API_KEY",
|
|
41
42
|
openrouter: "OPENROUTER_API_KEY",
|
|
42
43
|
replicate: "REPLICATE_API_TOKEN",
|
|
44
|
+
requesty: "REQUESTY_API_KEY",
|
|
43
45
|
xai: "XAI_API_KEY"
|
|
44
46
|
};
|
|
47
|
+
var PROVIDER_KEY_ENV_ALIASES = {
|
|
48
|
+
google: ["GOOGLE_API_KEY"],
|
|
49
|
+
moonshot: ["MOONSHOT_AI_API_KEY"]
|
|
50
|
+
};
|
|
45
51
|
var baseEntryShape = {
|
|
46
52
|
id: z.string().min(1),
|
|
47
53
|
name: z.string().min(1),
|
|
@@ -199,6 +205,6 @@ var ModelEntrySchema = z.discriminatedUnion("kind", [
|
|
|
199
205
|
AudioEntrySchema
|
|
200
206
|
]);
|
|
201
207
|
|
|
202
|
-
export { AudioCapabilitiesSchema, AudioEntrySchema, AudioPricingSchema, CatalogPriceTierSchema, CatalogProviderSchema, ImageAspectRatioSchema, ImageCapabilitiesSchema, ImageEntrySchema, ImagePricingSchema, ImageReferenceImagesSchema, LLMEntrySchema, LifecycleSchema, LlmPricingSchema, ModelEntrySchema, ModelKindSchema, NsfwPolicySchema, PROVIDER_KEY_ENV, VideoCapabilitiesSchema, VideoCostMultipliersSchema, VideoEntrySchema, VideoPricingSchema, VideoResolutionSchema, baseEntryShape };
|
|
203
|
-
//# sourceMappingURL=chunk-
|
|
204
|
-
//# sourceMappingURL=chunk-
|
|
208
|
+
export { AudioCapabilitiesSchema, AudioEntrySchema, AudioPricingSchema, CatalogPriceTierSchema, CatalogProviderSchema, ImageAspectRatioSchema, ImageCapabilitiesSchema, ImageEntrySchema, ImagePricingSchema, ImageReferenceImagesSchema, LLMEntrySchema, LifecycleSchema, LlmPricingSchema, ModelEntrySchema, ModelKindSchema, NsfwPolicySchema, PROVIDER_KEY_ENV, PROVIDER_KEY_ENV_ALIASES, VideoCapabilitiesSchema, VideoCostMultipliersSchema, VideoEntrySchema, VideoPricingSchema, VideoResolutionSchema, baseEntryShape };
|
|
209
|
+
//# sourceMappingURL=chunk-TQSSXYY5.mjs.map
|
|
210
|
+
//# sourceMappingURL=chunk-TQSSXYY5.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/schema/base.ts","../src/schema/llm.ts","../src/schema/image.ts","../src/schema/video.ts","../src/schema/audio.ts","../src/schema/index.ts"],"names":["z"],"mappings":";;;;;;;;AAYO,IAAM,eAAA,GAAkB,EAAE,IAAA,CAAK,CAAC,OAAO,OAAA,EAAS,OAAA,EAAS,OAAO,CAAC;AAGjE,IAAM,kBAAkB,CAAA,CAAE,IAAA,CAAK,CAAC,QAAA,EAAU,SAAA,EAAW,YAAY,CAAC;AASlE,IAAM,sBAAA,GAAyB,EAAE,IAAA,CAAK,CAAC,OAAO,KAAA,EAAO,MAAA,EAAQ,SAAS,CAAC;AAGvE,IAAM,mBAAmB,CAAA,CAAE,IAAA,CAAK,CAAC,UAAA,EAAY,YAAA,EAAc,QAAQ,CAAC;AAUpE,IAAM,qBAAA,GAAwB,EAAE,IAAA,CAAK;AAAA,EAC1C,WAAA;AAAA,EACA,YAAA;AAAA,EACA,UAAA;AAAA,EACA,YAAA;AAAA,EACA,aAAA;AAAA,EACA,QAAA;AAAA,EACA,SAAA;AAAA,EACA,SAAA;AAAA,EACA,UAAA;AAAA,EACA,QAAA;AAAA,EACA,iBAAA;AAAA,EACA,YAAA;AAAA,EACA,WAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF,CAAC;AAoBM,IAAM,gBAAA,GAAoD;AAAA,EAC/D,SAAA,EAAW,mBAAA;AAAA,EACX,UAAA,EAAY,oBAAA;AAAA,EACZ,QAAA,EAAU,kBAAA;AAAA,EACV,UAAA,EAAY,oBAAA;AAAA,EACZ,aAAA,EAAe,8BAAA;AAAA,EACf,MAAA,EAAQ,8BAAA;AAAA,EACR,OAAA,EAAS,iBAAA;AAAA,EACT,OAAA,EAAS,iBAAA;AAAA,EACT,QAAA,EAAU,kBAAA;AAAA,EACV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TQSSXYY5.mjs","sourcesContent":["import { z } from \"zod\"\n\n/**\n * Shared schema fragments for every model catalog entry.\n *\n * `baseEntryShape` is spread into per-kind schemas so each kind stays a\n * plain `z.object` — required by `z.discriminatedUnion`.\n *\n * Mirrors the pattern in\n * `packages/agencies/registry-client/src/types.ts` (`basePayloadShape`).\n */\n\nexport const ModelKindSchema = z.enum([\"llm\", \"image\", \"video\", \"audio\"])\nexport type ModelKind = z.infer<typeof ModelKindSchema>\n\nexport const LifecycleSchema = z.enum([\"stable\", \"preview\", \"deprecated\"])\nexport type Lifecycle = z.infer<typeof LifecycleSchema>\n\n/**\n * `catalogPriceTier` — the model's intrinsic cost bucket. Distinct from\n * `subscriptionPlanTier` (the user's billing level) and `modelPreset`\n * (an app's per-conversation UX picker). Always qualify when discussing\n * tiers — bare `priceTier` / `tier` is ambiguous in this codebase.\n */\nexport const CatalogPriceTierSchema = z.enum([\"low\", \"mid\", \"high\", \"premium\"])\nexport type CatalogPriceTier = z.infer<typeof CatalogPriceTierSchema>\n\nexport const NsfwPolicySchema = z.enum([\"filtered\", \"permissive\", \"strict\"])\nexport type NsfwPolicy = z.infer<typeof NsfwPolicySchema>\n\n/**\n * Canonical model-provider registry — the single source of truth for the\n * `provider` field on every catalog entry. Adding a model on a new\n * provider means adding it here first, so a typo or an un-onboarded\n * provider is a validation/build error rather than a silently-broken\n * entry. `CatalogVoiceProviderSchema` is the voice-callable subset.\n */\nexport const CatalogProviderSchema = z.enum([\n \"anthropic\",\n \"assemblyai\",\n \"deepgram\",\n \"elevenlabs\",\n \"gemini-live\",\n \"google\",\n \"minimax\",\n \"mistral\",\n \"moonshot\",\n \"openai\",\n \"openai-realtime\",\n \"openrouter\",\n \"replicate\",\n \"requesty\",\n \"xai\",\n])\nexport type CatalogProvider = z.infer<typeof CatalogProviderSchema>\n\n/**\n * Canonical provider → api-key ENVIRONMENT VARIABLE name — the single source\n * of truth for \"which env var carries this provider's LLM billing key\". Lives\n * here, next to {@link CatalogProviderSchema}, because provider identity and\n * its key env are the same fact (adding a provider to the enum forces adding\n * its key env, or this `Record<CatalogProvider, string>` fails to type-check —\n * the compile-time equivalent of catalog-sync keeping it current).\n *\n * `@agentproto/runtime`'s `providers-store` DERIVES `PROVIDER_ENV_VARS` from\n * this map (re-exporting it plus a few non-catalog gateway keys like `groq` /\n * `vercel-ai-gateway`), and the billing-auth resolver calls\n * `providerEnvVar(provider)` rather than ever re-listing these names per\n * adapter manifest. Names follow each SDK's own convention (matching the\n * adapter manifests' `models.env` maps). This is the api-key axis ONLY — the\n * `subscription` (Anthropic OAuth) env var is consumer-specific and declared\n * per Claude adapter, not here.\n */\nexport const PROVIDER_KEY_ENV: Record<CatalogProvider, string> = {\n anthropic: \"ANTHROPIC_API_KEY\",\n assemblyai: \"ASSEMBLYAI_API_KEY\",\n deepgram: \"DEEPGRAM_API_KEY\",\n elevenlabs: \"ELEVENLABS_API_KEY\",\n \"gemini-live\": \"GOOGLE_GENERATIVE_AI_API_KEY\",\n google: \"GOOGLE_GENERATIVE_AI_API_KEY\",\n minimax: \"MINIMAX_API_KEY\",\n mistral: \"MISTRAL_API_KEY\",\n moonshot: \"MOONSHOT_API_KEY\",\n openai: \"OPENAI_API_KEY\",\n \"openai-realtime\": \"OPENAI_API_KEY\",\n openrouter: \"OPENROUTER_API_KEY\",\n replicate: \"REPLICATE_API_TOKEN\",\n requesty: \"REQUESTY_API_KEY\",\n xai: \"XAI_API_KEY\",\n}\n\n/**\n * ADDITIONAL env-var names that carry the *same* provider key, beyond the one\n * canonical name in {@link PROVIDER_KEY_ENV}. Some consumers read a different\n * alias for a provider than the name we canonically inject, so a key set once\n * (`agentproto auth provider set <provider> <key>`) must be able to satisfy\n * every alias, not just the canonical name. `providers-store` derives its\n * `PROVIDER_ENV_ALIASES` from this and injects the canonical name PLUS every\n * alias at `serve` boot (explicit env still wins, per env name).\n *\n * Aliases are VERIFIED against a real consumer, never guessed — an alias we\n * cannot prove a consumer reads does not belong here:\n *\n * - `google: [\"GOOGLE_API_KEY\"]` — mastracode / `@mastra/core`. Its\n * `PROVIDER_REGISTRY.google.apiKeyEnvVar` is the alias array\n * `[\"GOOGLE_API_KEY\", \"GOOGLE_GENERATIVE_AI_API_KEY\"]`, but\n * `@mastra/code-sdk`'s `getApiKeyEnvVar()` collapses it to `envVars[0]`\n * (`GOOGLE_API_KEY`) before testing `Boolean(process.env[…])`. So mastracode\n * consults ONLY `GOOGLE_API_KEY`; our canonical `GOOGLE_GENERATIVE_AI_API_KEY`\n * is invisible to it. (Confirmed in the installed mastracode 0.26.x tree.)\n * - `moonshot: [\"MOONSHOT_AI_API_KEY\"]` — mastracode again, but via a HARDCODED\n * branch that bypasses the registry entirely:\n * `@mastra/code-sdk/dist/agents/mastracode-gateway.js:331-333` does\n * `if (args.providerId === \"moonshotai\") { if (!process.env.MOONSHOT_AI_API_KEY) throw … }`.\n * It reads `MOONSHOT_AI_API_KEY` (note the `_AI_`); we inject `MOONSHOT_API_KEY`\n * via {@link PROVIDER_KEY_ENV}. Because the name is hardcoded, not\n * registry-declared, the next reader cannot discover it from the registry —\n * hence this comment. (The provider slug drifts too: `moonshotai` upstream vs\n * our `moonshot`; the alias handles the env NAME, which is what matters here.)\n *\n * `gemini-live` is deliberately absent: no consumer of that provider is known\n * to read `GOOGLE_API_KEY`, so per the verify-not-guess rule it stays out. The\n * drift set is capped: across the providers we share with mastracode, only\n * `google` and `moonshot` diverge — anthropic / openai / openrouter / xai /\n * mistral / minimax (and the non-catalog groq) all match, so none are added.\n *\n * `Partial` because most providers have no known alias — a provider absent\n * here just gets its single canonical name injected.\n */\nexport const PROVIDER_KEY_ENV_ALIASES = {\n google: [\"GOOGLE_API_KEY\"],\n moonshot: [\"MOONSHOT_AI_API_KEY\"],\n} satisfies Partial<Record<CatalogProvider, readonly string[]>>\n\nexport const baseEntryShape = {\n id: z.string().min(1),\n name: z.string().min(1),\n description: z.string().default(\"\"),\n provider: CatalogProviderSchema,\n providerId: z.string().min(1),\n agentVisible: z.boolean().default(false),\n lifecycle: LifecycleSchema.default(\"stable\"),\n tags: z.array(z.string()).default([]),\n catalogPriceTier: CatalogPriceTierSchema.default(\"mid\"),\n nsfwPolicy: NsfwPolicySchema.default(\"filtered\"),\n regions: z.array(z.string()).optional(),\n aliases: z.array(z.string()).optional(),\n} as const\n","import { z } from \"zod\"\nimport { baseEntryShape } from \"./base.js\"\n\n/**\n * LLM pricing — token-based. Mirrors the historical `LLMPricing` shape in\n * `packages/core/src/config/llm-pricing.ts` so the existing\n * `calculateLLMCreditCost` formula carries over verbatim.\n */\nexport const LlmPricingSchema = z.object({\n inputPer1M: z.number().nonnegative(),\n outputPer1M: z.number().nonnegative(),\n creditInputPer1M: z.number().nonnegative(),\n creditOutputPer1M: z.number().nonnegative(),\n cacheReadMultiplier: z.number().nonnegative().optional(),\n cacheWriteMultiplier: z.number().nonnegative().optional(),\n // Router (how we call the model) vs vendor (who made it). See\n // `LLMPricing` in ../llm/catalog.ts for the contract.\n provider: z.string().optional(),\n vendor: z.string().optional(),\n})\nexport type LlmPricing = z.infer<typeof LlmPricingSchema>\n\nexport const LLMEntrySchema = z.object({\n ...baseEntryShape,\n kind: z.literal(\"llm\"),\n pricing: LlmPricingSchema,\n contextWindow: z.number().int().positive().optional(),\n})\nexport type LLMEntry = z.infer<typeof LLMEntrySchema>\n","import { z } from \"zod\"\nimport { baseEntryShape } from \"./base.js\"\n\nexport const ImageCapabilitiesSchema = z.object({\n generate: z.boolean(),\n edit: z.boolean(),\n upscale: z.boolean().optional(),\n})\nexport type ImageCapabilities = z.infer<typeof ImageCapabilitiesSchema>\n\nexport const ImageReferenceImagesSchema = z.object({\n supported: z.boolean(),\n fieldName: z.enum([\"image_input\", \"input_images\", \"input_image\", \"none\"]),\n maxCount: z.number().int().nonnegative(),\n singular: z.boolean(),\n})\nexport type ImageReferenceImages = z.infer<typeof ImageReferenceImagesSchema>\n\nexport const ImageAspectRatioSchema = z.object({\n supported: z.array(z.string()).min(1),\n default: z.string(),\n})\nexport type ImageAspectRatio = z.infer<typeof ImageAspectRatioSchema>\n\n/**\n * Pricing inputs for a model entry.\n *\n * Credit math is **derived at call time** by `computeCenticredits()` from\n * `baseCost × category-markup`. The catalog only carries the\n * production-cost input. An entry can opt out of the formula via\n * `overrideCreditCost` (strategic subsidy / partner pricing) — used\n * sparingly so a category-wide tune stays a one-line change in\n * `pricing/index.ts`.\n *\n * `costPerImage` / `costTier` / `creditCost` are deprecated but kept\n * readable so production data + admin UI keep parsing. New entries\n * should not set them.\n */\nexport const ImagePricingSchema = z.object({\n costPerImage: z.number().nonnegative().optional(),\n costTier: z.enum([\"low\", \"medium\", \"high\"]).optional(),\n billingUnit: z.literal(\"per_image\"),\n baseCost: z.number().nonnegative(),\n /** @deprecated Derived at call time. Kept for back-compat. */\n creditCost: z.number().nonnegative().optional(),\n /**\n * Strategic per-model override. When set, bypasses the formula and\n * the user is charged this many credits per output regardless of\n * provider cost or category markup.\n */\n overrideCreditCost: z.number().nonnegative().optional(),\n})\nexport type ImagePricing = z.infer<typeof ImagePricingSchema>\n\nexport const ImageEntrySchema = z.object({\n ...baseEntryShape,\n kind: z.literal(\"image\"),\n capabilities: ImageCapabilitiesSchema,\n referenceImages: ImageReferenceImagesSchema,\n aspectRatio: ImageAspectRatioSchema,\n output: z.enum([\"string\", \"array\"]),\n pricing: ImagePricingSchema,\n triggerWord: z.string().optional(),\n})\nexport type ImageEntry = z.infer<typeof ImageEntrySchema>\n","import { z } from \"zod\"\nimport { baseEntryShape } from \"./base.js\"\n\nexport const VideoCapabilitiesSchema = z.object({\n textToVideo: z.boolean(),\n imageToVideo: z.boolean(),\n subjectReference: z.boolean(),\n audio: z.boolean(),\n})\nexport type VideoCapabilities = z.infer<typeof VideoCapabilitiesSchema>\n\nexport const VideoResolutionSchema = z.enum([\n \"480p\",\n \"540p\",\n \"720p\",\n \"1080p\",\n \"1440p\",\n \"4k\",\n])\nexport type VideoResolution = z.infer<typeof VideoResolutionSchema>\n\n/**\n * Mirrors `CostMultipliers` from `the app integration-core`. Keys are\n * stringified so JSON round-trips cleanly.\n */\nexport const VideoCostMultipliersSchema = z.object({\n resolution: z.record(z.string(), z.number().positive()).optional(),\n duration: z.record(z.string(), z.number().positive()).optional(),\n mode: z.record(z.string(), z.number().positive()).optional(),\n})\nexport type VideoCostMultipliers = z.infer<typeof VideoCostMultipliersSchema>\n\nexport const VideoPricingSchema = z.object({\n costPerClip: z.number().nonnegative().optional(),\n costTier: z.enum([\"low\", \"medium\", \"high\"]).optional(),\n billingUnit: z.enum([\"per_clip\", \"per_second\"]),\n baseCost: z.number().nonnegative(),\n baseCostUnit: z.string(),\n /** Provider-cost multipliers (resolution / duration / mode). */\n multipliers: VideoCostMultipliersSchema.optional(),\n /** @deprecated Derived at call time. */\n creditCost: z.number().nonnegative().optional(),\n /**\n * @deprecated Use `multipliers` (provider-side) + per-category markup\n * in `pricing-registry`. The credit multipliers used to be a parallel\n * structure; now the formula re-applies `multipliers` to the derived\n * credit count automatically.\n */\n creditMultipliers: VideoCostMultipliersSchema.optional(),\n /** Strategic per-model override — bypasses the formula. */\n overrideCreditCost: z.number().nonnegative().optional(),\n})\nexport type VideoPricing = z.infer<typeof VideoPricingSchema>\n\nexport const VideoEntrySchema = z.object({\n ...baseEntryShape,\n kind: z.literal(\"video\"),\n capabilities: VideoCapabilitiesSchema,\n maxDuration: z.number().positive(),\n supportedResolutions: z.array(VideoResolutionSchema).min(1),\n supportedAspectRatios: z.array(z.string()).min(1),\n pricing: VideoPricingSchema,\n})\nexport type VideoEntry = z.infer<typeof VideoEntrySchema>\n","import { z } from \"zod\"\nimport { baseEntryShape } from \"./base.js\"\n\n// Single source of truth for audio model capabilities — mirrors (and is\n// re-used by) the runtime `AudioModelDefinition` in `audio/catalog.ts`.\n// Modality is multi-valued boolean flags (`tts`/`stt`/`s2s`) — a model may\n// do more than one; `s2s` is a speech↔speech engine (distinct from a\n// tts+llm+stt cascade). Transport (`streaming`) is a SEPARATE axis.\nexport const AudioCapabilitiesSchema = z.object({\n tts: z.boolean().optional(),\n stt: z.boolean().optional(),\n s2s: z.boolean().optional(),\n languages: z.array(z.string()),\n voiceCloning: z.boolean().optional(),\n streaming: z.boolean().optional(),\n timestamps: z.boolean().optional(),\n diarization: z.boolean().optional(),\n languageDetection: z.boolean().optional(),\n})\nexport type AudioCapabilities = z.infer<typeof AudioCapabilitiesSchema>\n\nexport const AudioPricingSchema = z.object({\n billingUnit: z.enum([\"per_character\", \"per_second\"]),\n baseCost: z.number().nonnegative(),\n baseCostUnit: z.string().optional(),\n /** @deprecated Derived at call time from `baseCost × category-markup`. */\n creditCost: z.number().nonnegative().optional(),\n /** Strategic per-model override — bypasses the formula. */\n overrideCreditCost: z.number().nonnegative().optional(),\n})\nexport type AudioPricing = z.infer<typeof AudioPricingSchema>\n\n// Voices are NOT per-model metadata — they live in the shared, provider-\n// neutral voice catalog (an app voice-catalog module,\n// `CatalogVoice`), referenced by id. The old per-entry `voice` placeholder\n// (+ its `VoiceMetadataSchema`) was never populated — removed.\nexport const AudioEntrySchema = z.object({\n ...baseEntryShape,\n kind: z.literal(\"audio\"),\n capabilities: AudioCapabilitiesSchema,\n pricing: AudioPricingSchema,\n supportedLocales: z.array(z.string()).optional(),\n})\nexport type AudioEntry = z.infer<typeof AudioEntrySchema>\n","import { z } from \"zod\"\nimport { LLMEntrySchema } from \"./llm.js\"\nimport { ImageEntrySchema } from \"./image.js\"\nimport { VideoEntrySchema } from \"./video.js\"\nimport { AudioEntrySchema } from \"./audio.js\"\n\nexport * from \"./base.js\"\nexport * from \"./llm.js\"\nexport * from \"./image.js\"\nexport * from \"./video.js\"\nexport * from \"./audio.js\"\nexport * from \"./voice.js\"\n\n/** Discriminated union over every kind. */\nexport const ModelEntrySchema = z.discriminatedUnion(\"kind\", [\n LLMEntrySchema,\n ImageEntrySchema,\n VideoEntrySchema,\n AudioEntrySchema,\n])\nexport type ModelEntry = z.infer<typeof ModelEntrySchema>\n"]}
|
package/dist/curation/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { C as CatalogKind, R as ResolvedModel } from '../index-
|
|
1
|
+
import { C as CatalogKind, R as ResolvedModel } from '../index-DSgqNd3Z.js';
|
|
2
2
|
import { CatalogVoice } from '../schema/voice.js';
|
|
3
|
-
import '../catalog-
|
|
4
|
-
import '../base-
|
|
3
|
+
import '../catalog-BPDMuxzf.js';
|
|
4
|
+
import '../base-C4kz9Dxc.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../image/index.js';
|
|
7
7
|
import '../video/index.js';
|
|
8
8
|
import '../audio/index.js';
|
|
9
|
-
import '../audio-
|
|
9
|
+
import '../audio-BbeLA_4x.js';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Curation — what an app SURFACES from the catalog, distinct from
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as ResolvedModel } from './index-
|
|
2
|
-
import { M as ModelKind } from './base-
|
|
1
|
+
import { R as ResolvedModel } from './index-DSgqNd3Z.js';
|
|
2
|
+
import { M as ModelKind } from './base-C4kz9Dxc.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Access control types — workspace-override rules + app scope.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as AccessDecision } from './evaluate-
|
|
2
|
-
import { C as CatalogPriceTier, L as Lifecycle, M as ModelKind } from './base-
|
|
3
|
-
import { R as ResolvedModel } from './index-
|
|
1
|
+
import { A as AccessDecision } from './evaluate-CVzfLCd0.js';
|
|
2
|
+
import { C as CatalogPriceTier, L as Lifecycle, M as ModelKind } from './base-C4kz9Dxc.js';
|
|
3
|
+
import { R as ResolvedModel } from './index-DSgqNd3Z.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Model enrichment — `catalogPriceTier` / `tags` / `lifecycle` / `actions`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as LLMPricing } from './catalog-
|
|
1
|
+
import { c as LLMPricing } from './catalog-BPDMuxzf.js';
|
|
2
2
|
import { ImageModelDefinition } from './image/index.js';
|
|
3
3
|
import { VideoModelDefinition } from './video/index.js';
|
|
4
4
|
import { AudioModelDefinition } from './audio/index.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ImageAspectRatio, ImageAspectRatioSchema, ImageCapabilities, ImageCapabilitiesSchema, ImageEntry, ImageEntrySchema, ImagePricing, ImagePricingSchema, ImageReferenceImages, ImageReferenceImagesSchema, LLMEntry, LLMEntrySchema, LlmPricing, LlmPricingSchema, ModelEntry, ModelEntrySchema, VideoCapabilities, VideoCapabilitiesSchema, VideoCostMultipliers, VideoCostMultipliersSchema, VideoEntry, VideoEntrySchema, VideoPricing, VideoPricingSchema, VideoResolution, VideoResolutionSchema } from './schema/index.js';
|
|
2
|
-
export { D as DEFAULT_PRICING, L as LLMCreditCostResult, c as LLMPricing, d as LLMUsageBreakdown, e as LLM_PRICING_CATALOG, M as MODEL_ALIASES, i as calculateLLMCreditCost, n as resolvePricing } from './catalog-
|
|
2
|
+
export { D as DEFAULT_PRICING, L as LLMCreditCostResult, c as LLMPricing, d as LLMUsageBreakdown, e as LLM_PRICING_CATALOG, M as MODEL_ALIASES, i as calculateLLMCreditCost, n as resolvePricing } from './catalog-BPDMuxzf.js';
|
|
3
3
|
export { AGENT_EDITABLE_MODEL_IDS, AGENT_GENERATIVE_MODEL_IDS, AGENT_IMAGE_MODEL_IDS, IMAGE_MODEL_CATALOG, IMAGE_MODEL_IDS, ImageModelDefinition, generateImageModelTable } from './image/index.js';
|
|
4
4
|
export { AGENT_VIDEO_MODEL_IDS, VIDEO_MODEL_CATALOG, VIDEO_MODEL_IDS, VideoModelDefinition, generateVideoModelTable } from './video/index.js';
|
|
5
5
|
export { AGENT_AUDIO_MODEL_IDS, AGENT_STT_MODEL_IDS, AGENT_TTS_MODEL_IDS, AUDIO_MODEL_CATALOG, AUDIO_MODEL_IDS, AudioBillingUnit, AudioModality, AudioModelDefinition, AudioProvider, DEFAULT_GEMINI_LIVE_MODEL, GEMINI_LIVE_MODEL_IDS, S2S_MODEL_IDS, generateAudioModelTable, isAcceptedGeminiLiveModel } from './audio/index.js';
|
|
@@ -9,14 +9,14 @@ export { ProviderGroup, SurfaceProfile, applyProfile, expandProviders, filterVoi
|
|
|
9
9
|
export { CC_USD_RATE, CREDIT_USD_RATE, DEFAULT_PRICING_FLOORS, DEFAULT_PRICING_MARKUP, PricingCategory, PricingMarkup, computeCenticredits, pricingRegistry } from './pricing/index.js';
|
|
10
10
|
export { CalculateCostOptions, CostResult, CostUsage, CostUsageKindMismatchError, UnknownModelError, calculateAudioCost, calculateCost, calculateImageCost, calculateLLMCost, calculateVideoCost } from './cost/index.js';
|
|
11
11
|
export { ShouldDebitDecision, ShouldDebitInput, shouldDebit } from './byok/index.js';
|
|
12
|
-
export { A as AccessDecision, a as AccessEffect, b as AccessEvalInput, c as AccessRule, d as AccessTarget, e as AppScope, f as evaluateAccess } from './evaluate-
|
|
12
|
+
export { A as AccessDecision, a as AccessEffect, b as AccessEvalInput, c as AccessRule, d as AccessTarget, e as AppScope, f as evaluateAccess } from './evaluate-CVzfLCd0.js';
|
|
13
13
|
export { CatalogDefaultDecision, evaluateCatalogDefaults } from './access/index.js';
|
|
14
14
|
export { CatalogOverlay, MergedOverlay, clearCatalogOverlays, getMergedOverlay, registerCatalogOverlay } from './overlay/index.js';
|
|
15
|
-
import { R as ResolvedModel } from './index-
|
|
16
|
-
export { C as CatalogKind, L as ListModelsFilter, g as getModel, a as getModelsByProvider, b as getStaticModelProvider, i as isAgentVisible, l as listModels, r as resolveAlias } from './index-
|
|
17
|
-
export { A as AvailableConnector, a as AvailableModel, b as AvailableModelCapabilities, c as AvailableModelsActor, d as AvailableModelsResponse, L as ListAvailableModelsParams, M as ModelEnrichment, g as getEnrichment, m as modelHasAction, e as modelHasTag, f as modelMatchesCatalogPriceTier, h as modelMatchesKind, i as modelMatchesPriceTier, p as priceTierForModel } from './index-
|
|
18
|
-
export { A as AudioCapabilities, a as AudioCapabilitiesSchema, b as AudioEntry, c as AudioEntrySchema, d as AudioPricing, e as AudioPricingSchema } from './audio-
|
|
19
|
-
export { C as CatalogPriceTier, a as CatalogPriceTierSchema, b as CatalogProvider, c as CatalogProviderSchema, L as Lifecycle, d as LifecycleSchema, M as ModelKind, e as ModelKindSchema, N as NsfwPolicy, f as NsfwPolicySchema, P as PROVIDER_KEY_ENV, g as baseEntryShape } from './base-
|
|
15
|
+
import { R as ResolvedModel } from './index-DSgqNd3Z.js';
|
|
16
|
+
export { C as CatalogKind, L as ListModelsFilter, g as getModel, a as getModelsByProvider, b as getStaticModelProvider, i as isAgentVisible, l as listModels, r as resolveAlias } from './index-DSgqNd3Z.js';
|
|
17
|
+
export { A as AvailableConnector, a as AvailableModel, b as AvailableModelCapabilities, c as AvailableModelsActor, d as AvailableModelsResponse, L as ListAvailableModelsParams, M as ModelEnrichment, g as getEnrichment, m as modelHasAction, e as modelHasTag, f as modelMatchesCatalogPriceTier, h as modelMatchesKind, i as modelMatchesPriceTier, p as priceTierForModel } from './index-CgOxudo5.js';
|
|
18
|
+
export { A as AudioCapabilities, a as AudioCapabilitiesSchema, b as AudioEntry, c as AudioEntrySchema, d as AudioPricing, e as AudioPricingSchema } from './audio-BbeLA_4x.js';
|
|
19
|
+
export { C as CatalogPriceTier, a as CatalogPriceTierSchema, b as CatalogProvider, c as CatalogProviderSchema, L as Lifecycle, d as LifecycleSchema, M as ModelKind, e as ModelKindSchema, N as NsfwPolicy, f as NsfwPolicySchema, P as PROVIDER_KEY_ENV, g as PROVIDER_KEY_ENV_ALIASES, h as baseEntryShape } from './base-C4kz9Dxc.js';
|
|
20
20
|
import 'zod';
|
|
21
21
|
|
|
22
22
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export { evaluateAccess, evaluateCatalogDefaults } from './chunk-HRRG2RZO.mjs';
|
|
|
7
7
|
import { priceTierForModel } from './chunk-WTHHXXIK.mjs';
|
|
8
8
|
export { assertReservedPrefixDiscipline, getActions, getEnrichment, isActionTag, modelHasAction, modelHasTag, modelMatchesCatalogPriceTier, modelMatchesKind, modelMatchesPriceTier, priceTierForModel } from './chunk-WTHHXXIK.mjs';
|
|
9
9
|
export { clearCatalogOverlays, getMergedOverlay, registerCatalogOverlay } from './chunk-H6JUTF3U.mjs';
|
|
10
|
-
export { AudioCapabilitiesSchema, AudioEntrySchema, AudioPricingSchema, CatalogPriceTierSchema, CatalogProviderSchema, ImageAspectRatioSchema, ImageCapabilitiesSchema, ImageEntrySchema, ImagePricingSchema, ImageReferenceImagesSchema, LLMEntrySchema, LifecycleSchema, LlmPricingSchema, ModelEntrySchema, ModelKindSchema, NsfwPolicySchema, PROVIDER_KEY_ENV, VideoCapabilitiesSchema, VideoCostMultipliersSchema, VideoEntrySchema, VideoPricingSchema, VideoResolutionSchema, baseEntryShape } from './chunk-
|
|
10
|
+
export { AudioCapabilitiesSchema, AudioEntrySchema, AudioPricingSchema, CatalogPriceTierSchema, CatalogProviderSchema, ImageAspectRatioSchema, ImageCapabilitiesSchema, ImageEntrySchema, ImagePricingSchema, ImageReferenceImagesSchema, LLMEntrySchema, LifecycleSchema, LlmPricingSchema, ModelEntrySchema, ModelKindSchema, NsfwPolicySchema, PROVIDER_KEY_ENV, PROVIDER_KEY_ENV_ALIASES, VideoCapabilitiesSchema, VideoCostMultipliersSchema, VideoEntrySchema, VideoPricingSchema, VideoResolutionSchema, baseEntryShape } from './chunk-TQSSXYY5.mjs';
|
|
11
11
|
import './chunk-O7TXHU5W.mjs';
|
|
12
12
|
export { DEFAULT_PRICING, LLM_PRICING_CATALOG, MODEL_ALIASES, calculateLLMCreditCost, resolvePricing } from './chunk-FCPS2VGK.mjs';
|
|
13
13
|
export { CC_USD_RATE, CREDIT_USD_RATE, DEFAULT_PRICING_FLOORS, DEFAULT_PRICING_MARKUP, computeCenticredits, pricingRegistry } from './chunk-QHELXPSL.mjs';
|
package/dist/llm/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { C as CacheStats, a as CalculateLLMCreditCostOptions, b as ContextWindowEntry, D as DEFAULT_PRICING, K as KnownLlmId, L as LLMCreditCostResult, c as LLMPricing, d as LLMUsageBreakdown, e as LLM_PRICING_CATALOG, f as LlmModelAlias, g as LlmModelId, M as MODEL_ALIASES, h as ModelRoute, i as calculateLLMCreditCost, j as getCacheStats, k as getModelProvider, r as resolveAlias, l as resolveContextWindow, m as resolveModelRoute, n as resolvePricing } from '../catalog-
|
|
2
|
-
import '../base-
|
|
1
|
+
export { C as CacheStats, a as CalculateLLMCreditCostOptions, b as ContextWindowEntry, D as DEFAULT_PRICING, K as KnownLlmId, L as LLMCreditCostResult, c as LLMPricing, d as LLMUsageBreakdown, e as LLM_PRICING_CATALOG, f as LlmModelAlias, g as LlmModelId, M as MODEL_ALIASES, h as ModelRoute, i as calculateLLMCreditCost, j as getCacheStats, k as getModelProvider, r as resolveAlias, l as resolveContextWindow, m as resolveModelRoute, n as resolvePricing } from '../catalog-BPDMuxzf.js';
|
|
2
|
+
import '../base-C4kz9Dxc.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/overlay/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { c as LLMPricing } from '../catalog-
|
|
1
|
+
import { c as LLMPricing } from '../catalog-BPDMuxzf.js';
|
|
2
2
|
import { ImageModelDefinition } from '../image/index.js';
|
|
3
3
|
import { VideoModelDefinition } from '../video/index.js';
|
|
4
4
|
import { AudioModelDefinition } from '../audio/index.js';
|
|
5
5
|
import { CatalogVoice } from '../schema/voice.js';
|
|
6
|
-
import '../base-
|
|
6
|
+
import '../base-C4kz9Dxc.js';
|
|
7
7
|
import 'zod';
|
|
8
|
-
import '../audio-
|
|
8
|
+
import '../audio-BbeLA_4x.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Consumer catalog overlays.
|
package/dist/picker/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import '../evaluate-
|
|
2
|
-
import '../base-
|
|
3
|
-
export { A as AvailableConnector, a as AvailableModel, b as AvailableModelCapabilities, c as AvailableModelsActor, d as AvailableModelsResponse, L as ListAvailableModelsParams, P as PRICE_TIER_NAMES, j as PRICE_TIER_SLOTS, k as priceTierBar, l as priceTierName } from '../index-
|
|
4
|
-
import '../index-
|
|
5
|
-
import '../catalog-
|
|
1
|
+
import '../evaluate-CVzfLCd0.js';
|
|
2
|
+
import '../base-C4kz9Dxc.js';
|
|
3
|
+
export { A as AvailableConnector, a as AvailableModel, b as AvailableModelCapabilities, c as AvailableModelsActor, d as AvailableModelsResponse, L as ListAvailableModelsParams, P as PRICE_TIER_NAMES, j as PRICE_TIER_SLOTS, k as priceTierBar, l as priceTierName } from '../index-CgOxudo5.js';
|
|
4
|
+
import '../index-DSgqNd3Z.js';
|
|
5
|
+
import '../catalog-BPDMuxzf.js';
|
|
6
6
|
import '../image/index.js';
|
|
7
7
|
import '../video/index.js';
|
|
8
8
|
import '../audio/index.js';
|
|
9
|
-
import '../audio-
|
|
9
|
+
import '../audio-BbeLA_4x.js';
|
|
10
10
|
import 'zod';
|
|
11
11
|
import '../schema/voice.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as LLMPricing } from '../catalog-
|
|
2
|
-
import '../base-
|
|
1
|
+
import { c as LLMPricing } from '../catalog-BPDMuxzf.js';
|
|
2
|
+
import '../base-C4kz9Dxc.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -123,6 +123,7 @@ declare function clearCustomRoutes(): void;
|
|
|
123
123
|
*
|
|
124
124
|
* openai/gpt-4o → direct OpenAI pricing / transport
|
|
125
125
|
* openai/gpt-4o@openrouter → OpenRouter route pricing / transport
|
|
126
|
+
* openai/gpt-4o@requesty → Requesty route pricing / transport
|
|
126
127
|
* openai/gpt-4o@agentik-proxy → custom route config (if registered)
|
|
127
128
|
*
|
|
128
129
|
* Bare legacy ids (e.g. `gpt-4o`, `claude-sonnet-4-5`) are also accepted and
|