UNPKG

@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

63 lines (62 loc) • 2.38 kB
{ "$schema": "./provider-rules.schema.json", "id": "credentials", "apiKeyFormats": { "openai": "^sk-(?!ant-)(?:proj-|svcacct-|admin-)?[A-Za-z0-9_-]{48,}$", "anthropic": "^sk-ant-[A-Za-z0-9\\-_]{95,}$", "google-ai": "^AIza[A-Za-z0-9\\-_]{35}$", "huggingface": "^hf_[A-Za-z0-9]{37}$", "mistral": "^[A-Za-z0-9]{32}$", "azure": "^[A-Za-z0-9]{32}$", "aws": "^[A-Z0-9]{20}$", "bedrock": "^[A-Z0-9]{20}$" }, "oauthTokenFormats": { "anthropic-access": "^[A-Za-z0-9\\-_]+\\.[A-Za-z0-9\\-_]+\\.[A-Za-z0-9\\-_]+$|^[A-Za-z0-9\\-_]{32,}$", "anthropic-refresh": "^[A-Za-z0-9\\-_]{32,}$" }, "credentialFormatNotes": { "aws": "AWS access key ID format.", "bedrock": "AWS access key ID: 20 uppercase alphanumerics.", "anthropic-access": "Claude OAuth access tokens: JWT-shaped or opaque.", "anthropic-refresh": "Refresh tokens are longer opaque strings.", "apiKeyLengths": "Lengths quoted in the configuration hints (providerUtils.ts). Each matches its apiKeyFormats pattern; GOOGLE_AI_EXACT counts the AIza prefix.", "credentialChecks": "Provider spelling (lowercased) to the validateProviderEnvVars() check it runs. none: no environment variables are required. A spelling not listed is reported as an unknown provider." }, "apiKeyLengths": { "OPENAI_MIN": 48, "ANTHROPIC_MIN": 95, "HUGGINGFACE_EXACT": 37, "AZURE_MIN": 32, "MISTRAL_EXACT": 32, "AWS_ACCESS_KEY": 20, "GOOGLE_AI_EXACT": 39 }, "credentialChecks": { "bedrock": "aws", "amazon": "aws", "aws": "aws", "vertex": "vertex", "googlevertex": "vertex", "google": "vertex", "gemini": "vertex", "openai": "openai", "gpt": "openai", "anthropic": "anthropic", "claude": "anthropic", "azure": "azure", "azureopenai": "azure", "google-ai": "google-ai", "google-studio": "google-ai", "huggingface": "huggingface", "hugging-face": "huggingface", "hf": "huggingface", "mistral": "mistral", "mistral-ai": "mistral", "mistralai": "mistral", "ollama": "none", "local": "none", "local-ollama": "none", "litellm": "none" } }