@cherrystudio/provider-registry 0.3.5 → 0.4.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/data/models.json +100 -1
- package/data/provider-models.json +6 -1
- package/data/providers.json +12 -12
- package/dist/bundled-catalog.cjs +3 -3
- package/dist/bundled-catalog.d.cts +1 -1
- package/dist/bundled-catalog.d.mts +1 -1
- package/dist/bundled-catalog.mjs +3 -3
- package/dist/{bundled-models-Cy54_YGJ.cjs → bundled-models-B16Y742f.cjs} +142 -2
- package/dist/{bundled-models-C7JXYNq1.mjs → bundled-models-DbCfGG7c.mjs} +142 -2
- package/dist/bundled-models.cjs +1 -1
- package/dist/bundled-models.d.cts +1 -1
- package/dist/bundled-models.d.mts +1 -1
- package/dist/bundled-models.mjs +1 -1
- package/dist/{bundled-provider-models-ChgWAIad.cjs → bundled-provider-models-BXz4jWQd.cjs} +7 -2
- package/dist/{bundled-provider-models-DmO0uUr6.mjs → bundled-provider-models-BwelA3n2.mjs} +7 -2
- package/dist/bundled-provider-models.cjs +1 -1
- package/dist/bundled-provider-models.d.cts +1 -1
- package/dist/bundled-provider-models.d.mts +1 -1
- package/dist/bundled-provider-models.mjs +1 -1
- package/dist/{bundled-providers-DD0g2PPu.cjs → bundled-providers-DCzMsYJM.cjs} +13 -13
- package/dist/{bundled-providers-BckSm7wk.mjs → bundled-providers-DkfFNsuV.mjs} +13 -13
- package/dist/bundled-providers.cjs +1 -1
- package/dist/bundled-providers.d.cts +1 -1
- package/dist/bundled-providers.d.mts +1 -1
- package/dist/bundled-providers.mjs +1 -1
- package/dist/{catalog-XJyrtwI9.d.cts → catalog-BqMRbtC6.d.cts} +2 -2
- package/dist/{catalog-XJyrtwI9.d.mts → catalog-BqMRbtC6.d.mts} +2 -2
- package/dist/{catalog-DElG_l-8.mjs → catalog-C1vmCQsh.mjs} +2 -2
- package/dist/{catalog-DurdOhD0.cjs → catalog-CiNhAT2f.cjs} +3 -3
- package/dist/index.cjs +7 -4
- package/dist/index.d.cts +107 -95
- package/dist/index.d.mts +107 -95
- package/dist/index.mjs +7 -4
- package/dist/{model-kwW2vWDI.cjs → model-CHEP1GQj.cjs} +3 -0
- package/dist/{model-NFEbqWMs.mjs → model-D2FsNZSf.mjs} +3 -0
- package/dist/{provider-D2l4EBDl.mjs → provider-SqdILkI9.mjs} +2 -2
- package/dist/{provider-C_xJo-Py.cjs → provider-jpEaS8pw.cjs} +2 -2
- package/dist/{provider-models-B7uTkDpK.d.cts → provider-models-BBd6l8lw.d.cts} +1331 -521
- package/dist/{provider-models-B7uTkDpK.d.mts → provider-models-BBd6l8lw.d.mts} +1331 -521
- package/dist/{provider-models-WeMLH-Dl.cjs → provider-models-CPwRSoBW.cjs} +2 -2
- package/dist/{provider-models-CCmPfrkT.mjs → provider-models-Ds8okXrz.mjs} +2 -2
- package/dist/{registry-BU07uMK7.d.cts → registry-BqsJAuKJ.d.mts} +1 -1
- package/dist/{registry-D_Pj7rEE.d.mts → registry-DPkAQDdi.d.cts} +1 -1
- package/dist/registry-loader.cjs +5 -5
- package/dist/registry-loader.d.cts +2 -2
- package/dist/registry-loader.d.mts +2 -2
- package/dist/registry-loader.mjs +5 -5
- package/package.json +1 -2
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as REMOTE_REGISTRY_FILES, c as normalizeModelId, d as stripDateSnapshot, f as stripVariantQuantDateSuffixes, i as REGISTRY_SCHEMA_VERSION, l as stripBedrockDottedVendorPrefix, n as REGISTRY_FILES, o as ModelIndex, r as REGISTRY_MIN_APP_VERSION, s as ProviderModelIndex, t as CatalogManifestSchema, u as stripBedrockRevision } from "./catalog-
|
|
2
|
-
import { C as REASONING_EFFORT, D as objectValues, E as SERVER_TOOL_MODEL_SCOPE, S as MODEL_CAPABILITY, T as SERVER_TOOL, a as ModelConfigSchema, b as ENDPOINT_TYPE, l as ReasoningControlSchema, n as ImageGenerationSupportSchema, o as ModelListSchema, t as ImageGenerationModeSchema, v as CANONICAL_PARAM_KEY, w as REASONING_EFFORT_ORDER, x as MODALITY, y as CURRENCY } from "./model-
|
|
3
|
-
import { a as REASONING_FORMAT_TYPES, c as ServiceTierOptionsSchema, d as REASONING_WIRE_TARGETS, f as ReasoningFormatWireProfileSchema, g as matchVendor, h as isVendor, i as ProviderListSchema, l as ServiceTierRequestControlSchema, m as VENDOR_PATTERNS, n as ProviderConfigSchema, o as ServerToolConfigSchema, p as ReasoningWireProfileSchema, r as ProviderEditionSchema, s as ServiceTierDeliverySchema, t as FastModeTransportSchema, u as ServiceTierSelectionSchema } from "./provider-
|
|
4
|
-
import { n as ProviderModelOverrideSchema, r as ProviderModelReasoningContractSchema, t as ProviderModelListSchema } from "./provider-models-
|
|
1
|
+
import { a as REMOTE_REGISTRY_FILES, c as normalizeModelId, d as stripDateSnapshot, f as stripVariantQuantDateSuffixes, i as REGISTRY_SCHEMA_VERSION, l as stripBedrockDottedVendorPrefix, n as REGISTRY_FILES, o as ModelIndex, r as REGISTRY_MIN_APP_VERSION, s as ProviderModelIndex, t as CatalogManifestSchema, u as stripBedrockRevision } from "./catalog-C1vmCQsh.mjs";
|
|
2
|
+
import { C as REASONING_EFFORT, D as objectValues, E as SERVER_TOOL_MODEL_SCOPE, S as MODEL_CAPABILITY, T as SERVER_TOOL, a as ModelConfigSchema, b as ENDPOINT_TYPE, l as ReasoningControlSchema, n as ImageGenerationSupportSchema, o as ModelListSchema, t as ImageGenerationModeSchema, v as CANONICAL_PARAM_KEY, w as REASONING_EFFORT_ORDER, x as MODALITY, y as CURRENCY } from "./model-D2FsNZSf.mjs";
|
|
3
|
+
import { a as REASONING_FORMAT_TYPES, c as ServiceTierOptionsSchema, d as REASONING_WIRE_TARGETS, f as ReasoningFormatWireProfileSchema, g as matchVendor, h as isVendor, i as ProviderListSchema, l as ServiceTierRequestControlSchema, m as VENDOR_PATTERNS, n as ProviderConfigSchema, o as ServerToolConfigSchema, p as ReasoningWireProfileSchema, r as ProviderEditionSchema, s as ServiceTierDeliverySchema, t as FastModeTransportSchema, u as ServiceTierSelectionSchema } from "./provider-SqdILkI9.mjs";
|
|
4
|
+
import { n as ProviderModelOverrideSchema, r as ProviderModelReasoningContractSchema, t as ProviderModelListSchema } from "./provider-models-Ds8okXrz.mjs";
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
//#region src/registry.ts
|
|
7
7
|
/** Parse untrusted model metadata; provider routing is supplied separately by the application. */
|
|
@@ -79,9 +79,12 @@ const IMAGE_PARAM_CATALOG = {
|
|
|
79
79
|
background: { schema: optString },
|
|
80
80
|
bottomScale: { schema: optNumber },
|
|
81
81
|
cfg: { schema: optNumber },
|
|
82
|
+
complexity: { schema: optString },
|
|
82
83
|
customSize: { schema: optString },
|
|
83
84
|
detail: { schema: optNumber },
|
|
84
85
|
enableInterleave: { schema: optBool },
|
|
86
|
+
frameCount: { schema: optInt },
|
|
87
|
+
frameDurationMs: { schema: optInt },
|
|
85
88
|
function: { schema: optString },
|
|
86
89
|
guidanceScale: { schema: optNumber },
|
|
87
90
|
imageResolution: {
|
|
@@ -98,9 +98,12 @@ const CANONICAL_PARAM_KEY = {
|
|
|
98
98
|
BACKGROUND: "background",
|
|
99
99
|
BOTTOM_SCALE: "bottomScale",
|
|
100
100
|
CFG: "cfg",
|
|
101
|
+
COMPLEXITY: "complexity",
|
|
101
102
|
CUSTOM_SIZE: "customSize",
|
|
102
103
|
DETAIL: "detail",
|
|
103
104
|
ENABLE_INTERLEAVE: "enableInterleave",
|
|
105
|
+
FRAME_COUNT: "frameCount",
|
|
106
|
+
FRAME_DURATION_MS: "frameDurationMs",
|
|
104
107
|
FUNCTION: "function",
|
|
105
108
|
GUIDANCE_SCALE: "guidanceScale",
|
|
106
109
|
IMAGE_RESOLUTION: "imageResolution",
|
|
@@ -75,9 +75,12 @@ const CANONICAL_PARAM_KEY = {
|
|
|
75
75
|
BACKGROUND: "background",
|
|
76
76
|
BOTTOM_SCALE: "bottomScale",
|
|
77
77
|
CFG: "cfg",
|
|
78
|
+
COMPLEXITY: "complexity",
|
|
78
79
|
CUSTOM_SIZE: "customSize",
|
|
79
80
|
DETAIL: "detail",
|
|
80
81
|
ENABLE_INTERLEAVE: "enableInterleave",
|
|
82
|
+
FRAME_COUNT: "frameCount",
|
|
83
|
+
FRAME_DURATION_MS: "frameDurationMs",
|
|
81
84
|
FUNCTION: "function",
|
|
82
85
|
GUIDANCE_SCALE: "guidanceScale",
|
|
83
86
|
IMAGE_RESOLUTION: "imageResolution",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as REASONING_EFFORT, D as objectValues, E as SERVER_TOOL_MODEL_SCOPE, T as SERVER_TOOL, _ as ZodCurrencySchema, a as ModelConfigSchema, b as ENDPOINT_TYPE, d as looseArray, f as EndpointTypeSchema, g as VersionSchema, h as ProviderIdSchema, p as MetadataSchema } from "./model-
|
|
1
|
+
import { C as REASONING_EFFORT, D as objectValues, E as SERVER_TOOL_MODEL_SCOPE, T as SERVER_TOOL, _ as ZodCurrencySchema, a as ModelConfigSchema, b as ENDPOINT_TYPE, d as looseArray, f as EndpointTypeSchema, g as VersionSchema, h as ProviderIdSchema, p as MetadataSchema } from "./model-D2FsNZSf.mjs";
|
|
2
2
|
import * as z from "zod";
|
|
3
3
|
//#region src/patterns/vendor-patterns.ts
|
|
4
4
|
/**
|
|
@@ -217,7 +217,7 @@ const ProviderEditionSchema = z.enum(["global", "cn"]);
|
|
|
217
217
|
*
|
|
218
218
|
* Model availability remains a provider-model concern; this only describes
|
|
219
219
|
* how the provider carries an enabled Fast request. `openai-priority` means the
|
|
220
|
-
* `
|
|
220
|
+
* `service_tier` field on the OpenAI-compatible wire — the tier *value* is
|
|
221
221
|
* vendor-specific and travels in `fastMode.serviceTier` (OpenAI's `priority`,
|
|
222
222
|
* Ark's `fast`), so a new vendor never has to expand this enum: enum expansion
|
|
223
223
|
* is a breaking wire change, an optional field is not.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_model = require("./model-
|
|
1
|
+
const require_model = require("./model-CHEP1GQj.cjs");
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
zod = require_model.__toESM(zod, 1);
|
|
4
4
|
//#region src/patterns/vendor-patterns.ts
|
|
@@ -218,7 +218,7 @@ const ProviderEditionSchema = zod.enum(["global", "cn"]);
|
|
|
218
218
|
*
|
|
219
219
|
* Model availability remains a provider-model concern; this only describes
|
|
220
220
|
* how the provider carries an enabled Fast request. `openai-priority` means the
|
|
221
|
-
* `
|
|
221
|
+
* `service_tier` field on the OpenAI-compatible wire — the tier *value* is
|
|
222
222
|
* vendor-specific and travels in `fastMode.serviceTier` (OpenAI's `priority`,
|
|
223
223
|
* Ark's `fast`), so a new vendor never has to expand this enum: enum expansion
|
|
224
224
|
* is a breaking wire change, an optional field is not.
|