Skip to content
Source
Sign inSign up
TanStack/schemas
Open History to see the last commit

ant-ling-native-sources.md

57 lines3.8 KB

Ant Ling native sources

Checked 2026-10-09. Production sync fetches public provider-owned pages; fixtures capture their article contents for offline regression tests. There is no static model registry, reseller pricing source, credential requirement or generation request in the adapter.

The catalog is the union of native API model options and direct CNY price IDs. Currently it contains eight rows, including newer Ling-3.1-flash and AntAngelMed. The API options lag the pricing page: model options are retained as source annotations rather than a closed schema allowlist that would reject the newer provider-published ID. New IDs and changes from free to paid are tested by changing source documents, without changing production code.

The source-silent ledger exempts only maxOutput. Other gaps remain real: native pricing is not published for AntAngelMed or Ling-3.0-tiny; tiny/AntAngelMed context is unknown; Ling-3.1-flash is not yet in the API-scoped options and its request map and API modalities stay null. Its hosted activity also remains unknown; direct price IDs do not imply chat. Only native API-options models are bound to the published request schema; pricing-only rows keep schemaEndpointId null. Missing per-model native quotes explicitly clear prior unsourced prices after a successful source read. Effort is supported only for its native scoped model. No provider-wide exemption masks these partial gaps, and this change does not assert the issue's requested gap score of 1.

The OpenAI page publishes request tables and response examples, but no formal response field schema. The adapter emits a sourced input schema and leaves output schema absent. Its formal messages.content table says string, while a separate model note describes VL image/video content blocks. We retain the formal declaration as an annotation, and leave messages.content type unknown (x-source-type: null) because the same native API page explicitly accepts VL image/video content blocks. No generic OpenAI content-part shape is constructed; validation does not reject the native documented multimodal content arrays. No max_tokens field is added from another protocol.

Malformed pages, missing sections/cells, unknown native types and unreadable current amounts throw. Historical prices, reseller prices and handmade facts are never substituted. The rate-card evaluator accepts a literal source-published zero (including a CNY currency wrapper), while retaining its rejection of paid formulas that evaluate to zero and all negative results.