@modelschemas/client#
0.2.4#
Patch Changes#
- f0d8773: Cite the OpenCode Go console page that replaced
/docs/go/in the generated client descriptions.
0.2.3#
Patch Changes#
- 57f76fc:
GET /v1/openapi/{provider}no longer caps a provider-grained document at 40 paths (#560). ElevenLabs is served again, and the wholemusic-generationtag is classified. - 64fba2b:
GET /v1/openapi/falwith no selector is one queue document:POST /{endpoint_id}andGET /{endpoint_id}/requests/{request_id}, with every live model in theendpoint_idenum and untyped bodies.?activity=narrows the enum and inlines each model's own body schema. AddsGET /v1/providers/{provider}: one provider's status, counts, and live model counts per activity.
0.2.2#
Patch Changes#
efd04aa: The OpenAPI
RateCardschemas are now written from the rate-card zod schema (namedRateCard,RateCardInput,RateCardExpr,RateCardTable,RateCardPrice, …), so the client's generatedRateCardhas typedpriceandtablesandgetModel'spricinggoes toevaluateCardafter'price' in pricing, with no cast. The generatedRateCardInputis now a union bykind, andRateCardSource/RateCardExamplegain descriptions.rateCardSchemacarries.metaids; validation is unchanged.CompactPricing,PricingRange,ModelReasoningandChatRequestMapare written from the same zod schemas the server builds them with.ChatRequestMap.thinking.offis now typed as an object or null (it wasunknown);ModelReasoningandPriceBoundsare named types. No served value changes, but the spec now closes these components and the rest of the RateCard family to extra fields (additionalProperties: false), as zod writes it for an output schema; a validator built from the spec rejects a field the server adds later.653ed60:
ModelgainsrequiredRequestHeadersandtrainsOnRequestData, andFactSourcegainsverifiedAtfor a probe-verified fact.GET /v1/statusgainsstaleProbes.667b1d7: OpenCode Go required headers are the client-supplied half of the provider connect profile.
trainsOnRequestDatais true when that model's Go privacy row says Yes.1780348: Format the generated client with oxfmt. No API change.
0dbb5aa: Vercel rows whose price varies by route store a
pricingRange(#451). Each route is a Vercelprovider_namewith its compiled card inline, not a catalog row.estimateCostprices those inline cards and names min and max by provider. Endpoints withstatusother than 0 are omitted and named onfactSources.pricingRange. Model row shape is v4.
0.2.1#
Patch Changes#
589f284: Publish built JavaScript. Each package ships
dist/*.jsanddist/*.d.ts.exportsandmainpoint atdist/, and the CLI bin is the built file with a Node shebang. Plain Node can import the libraries and runmodelschemas --helpwith no TypeScript loader.bcbe8d0: Estimate one price per value of a missing choice input (#450).
estimateCostnow returnsEstimateResult | EstimateRangeResult | EstimateByInputResult: when the call omits exactly one required enum or boolean input with no default (BytePluspricing_period),{ currency, byInput: { input, values } }holds one result per allowed value.RateCardErrorgainsinput, the card input the caller did not supply, onbad-input"required" andestimate-unavailable.3153d38:
Modelgainsdeprecation(the provider's deprecations page entry:deprecatedAt,retiresAt,replacedBy,sourceUrl), and the change feed gainsmodel.deprecated.bb2ae17: Type the model row.
listModels,listProviderModels,getModeland the admin export now return typed rows (Model,ModelList,ProviderModelList,ModelDetail,ExportModel) instead of{ [key: string]: unknown }: every field is required exceptfactSources(omitted withprovenance=0), withmodalities,factSources,_linksand detaildiscrepanciesspelled out. Adds thecatalog.shape_changedchange type: the feed announces each new row shape version.b530d22: Regenerate with
@hey-api/openapi-ts0.99.0. SDK functions now declare their return types (RequestResult<…>). The generated defaultclientdefaults tobaseUrl: '/';createModelschemasClient({ baseUrl })is unchanged.589f284: Breaking:
rateCardSchemamoved from the@modelschemas/rate-cardroot to@modelschemas/rate-card/schema. The root no longer needszod; install it only to import./schema.Breaking: the CLI, codegen, and vite declare
engines.node >= 22.18.0. The CLI needsimport.meta.main; on Node 20 it exited without running.client, codegen, and vite are
sideEffects: false, and every package exports./package.json.7210a10: Price ranges for routed model ids (#406). Model rows gain
pricingRange(PricingRange | null) andfactSources.pricingRange: a routed id whose routes bill different prices haspricing: nulland a min/max per million over its routes' published cards, each route named by its own row. It is a bound, never the billed price.estimateCostnow returnsEstimateResult | EstimateRangeResult: on such a row,{ currency, min, max, routes }, withminandmaxnaming their route.