@juspay/neurolink
Version:
The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002
60 lines (59 loc) • 2.72 kB
JSON
{
"$schema": "./provider-rules.schema.json",
"id": "routing",
"vertexLocation": {
"globalEnv": "GOOGLE_VERTEX_GLOBAL_LOCATION",
"imageEnv": "GOOGLE_VERTEX_IMAGE_LOCATION",
"global": "global"
},
"vertexMaxTokensIssues": ["gemini-2.5-flash", "gemini-2.5-pro"],
"imageModels": {
"openai": [
{
"match": "^gpt-image-1$",
"maxN": 1,
"sizes": {
"16:9": "1536x1024",
"3:2": "1536x1024",
"9:16": "1024x1536",
"2:3": "1024x1536"
}
},
{
"match": "^dall-e-3",
"maxN": 1,
"sizes": {
"16:9": "1792x1024",
"3:2": "1792x1024",
"9:16": "1024x1792",
"2:3": "1024x1792"
}
},
{ "match": "^dall-e-2", "maxN": 10 }
]
},
"imageModelDefaults": { "openai": { "maxN": 1, "size": "1024x1024" } },
"imagePaths": {
"stability": [
{ "match": "^sd3\\.5-", "path": "sd3" },
{ "match": "^stable-image-ultra$", "path": "ultra" },
{ "match": "^stable-image-core$", "path": "core" }
]
},
"embeddingKinds": {
"bedrock": {
"novaMultimodal": { "allOf": ["nova", "multimodal"] },
"multimodal": {
"anyOf": ["image", "multimodal"],
"exact": ["amazon.titan-embed-image-v1"]
}
}
},
"topicNotes": {
"vertexLocation": "Gemini models (model-families.json vertexGlobalLocation, plus modelLists.vertexGlobalLocationText and the image models) are served from globalEnv, else global; image models from imageEnv, else global. Which Vertex models take the Anthropic SDK path is model-families.json claudeRoutedOnVertex.",
"vertexMaxTokensIssues": "Vertex models that mishandle maxTokens, used when the model config gives no list (substring match).",
"imageModels": "OpenAI image models, first match wins, case-sensitive: maxN caps how many images one call asks for (1 means always 1; above 1 the request is clamped to 1..maxN), and sizes maps an aspect ratio to the size parameter. Anything unmatched gets imageModelDefaults.",
"imagePaths": "Stability URL path per model id, first match wins, case-sensitive; an unmatched id is used as the path.",
"embeddingKinds": "Which Bedrock embedding models take the multimodal request body: novaMultimodal needs every allOf substring; multimodal needs any anyOf substring, an exact id, or novaMultimodal."
}
}