feat: REST v1 (OpenAPI 3.1) + models index + ML inference proxy - #1
Merged
Conversation
…etect, ML inference proxy; v1.0.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
REST v1 — the OpenAPI-first interface
Serves alongside GraphQL (unchanged,
POST /graphql):GET /openapi.json— OpenAPI 3.1 documentGET /— service index;GET /v1/info— version/capabilitiesGET /v1/maps,GET /v1/maps/{code}— all 287 bundled systems + compiled map JSONPOST /v1/transliterate— same engine, same limits, same error strings as GraphQLPOST /v1/detect— ranked system detectionGET /v1/models,GET /v1/models/{id}— the neural model index (IMF v1), generated from interscript-ml's models.yaml (npm run gen:models)POST /v1/infer—{model, input}→{output}; proxies to the Modal inference service (ML_ENDPOINT/ML_TOKENenv), which runs the same parity-verified ONNX decode that gates every release18/18 tests green (GraphQL fixtures unaffected). Version → 1.0.0.