@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
45 lines (44 loc) • 1.32 kB
JSON
{
"$schema": "./provider-rules.schema.json",
"id": "proxy",
"finishReasons": {
"toOpenAI": {
"map": {
"stop": "stop",
"end_turn": "stop",
"length": "length",
"max_tokens": "length",
"tool-calls": "tool_calls",
"tool_use": "tool_calls",
"content_filter": "content_filter",
"safety": "content_filter",
"": null
},
"default": "stop",
"whenAbsent": null
},
"toClaude": {
"map": {
"stop": "end_turn",
"end_turn": "end_turn",
"length": "max_tokens",
"max_tokens": "max_tokens",
"tool-calls": "tool_use",
"tool_use": "tool_use",
"content_filter": "stop_sequence",
"safety": "stop_sequence"
},
"default": null,
"whenAbsent": "end_turn",
"passthroughUnknown": true
},
"toGemini": {
"map": {
"length": "MAX_TOKENS",
"max_tokens": "MAX_TOKENS",
"content_filter": "SAFETY"
},
"default": "STOP"
}
}
}