@juspay/neurolink 9.68.18 → 9.68.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,6 @@
2
2
  * Provider-specific type definitions for NeuroLink
3
3
  */
4
4
  import type { UnknownRecord, JsonValue, StreamingCapability } from "./common.js";
5
- import type { ProviderError } from "./errors.js";
6
5
  import { AIProviderName, AnthropicModels, BedrockModels, DeepSeekModels, GoogleAIModels, LlamaCppModels, LMStudioModels, NvidiaNimModels, OpenAIModels, VertexModels } from "../constants/enums.js";
7
6
  import type { ValidationSchema } from "./aliases.js";
8
7
  import type { EnhancedGenerateResult, GenerateResult, TextGenerationOptions } from "./generate.js";
@@ -149,6 +148,7 @@ export type NeurolinkCredentials = {
149
148
  };
150
149
  ollama?: {
151
150
  baseURL?: string;
151
+ apiKey?: string;
152
152
  };
153
153
  deepseek?: {
154
154
  apiKey?: string;
@@ -919,37 +919,6 @@ export type ModelsResponse = {
919
919
  owned_by?: string;
920
920
  }>;
921
921
  };
922
- /**
923
- * Ollama tool call structure
924
- */
925
- export type OllamaToolCall = {
926
- id: string;
927
- type: "function";
928
- function: {
929
- name: string;
930
- arguments: string;
931
- };
932
- };
933
- /**
934
- * Ollama tool result structure
935
- */
936
- export type OllamaToolResult = {
937
- tool_call_id: string;
938
- content: string;
939
- };
940
- /**
941
- * Ollama message structure for conversation and tool execution
942
- */
943
- export type OllamaMessage = {
944
- role: "system" | "user" | "assistant" | "tool";
945
- content: string | Array<{
946
- type: string;
947
- text?: string;
948
- [key: string]: unknown;
949
- }>;
950
- tool_calls?: OllamaToolCall[];
951
- images?: string[];
952
- };
953
922
  /**
954
923
  * Default model aliases for easy reference
955
924
  */
@@ -1465,22 +1434,6 @@ export type ProviderHealthStatusOptions = {
1465
1434
  configurationIssues: string[];
1466
1435
  recommendations: string[];
1467
1436
  };
1468
- /**
1469
- * Structural adapter type capturing what AI SDK's `streamText` / `generateText`
1470
- * actually invoke at runtime on a model object.
1471
- *
1472
- * `OllamaLanguageModel` satisfies this type. The provider can cast
1473
- * `new OllamaLanguageModel(...)` to `LanguageModel` via this
1474
- * intermediate type, avoiding `as unknown as LanguageModel`.
1475
- */
1476
- export type OllamaAsLanguageModel = {
1477
- readonly specificationVersion: string;
1478
- readonly provider: string;
1479
- readonly modelId: string;
1480
- readonly supportedUrls: Record<string, RegExp[]>;
1481
- doGenerate(options: Record<string, unknown>): Promise<unknown>;
1482
- doStream(options: Record<string, unknown>): Promise<unknown>;
1483
- };
1484
1437
  /**
1485
1438
  * Structural type that captures what AI SDK's `streamText` / `generateText`
1486
1439
  * actually invoke at runtime on a model object.
@@ -1703,12 +1656,6 @@ export type ProviderRegistration = {
1703
1656
  export type NeuroLinkInstance = {
1704
1657
  generate: (options: Record<string, unknown>) => Promise<unknown>;
1705
1658
  };
1706
- /** ProviderError enriched with HTTP response fields from Ollama. */
1707
- export type OllamaHttpError = ProviderError & {
1708
- statusCode: number;
1709
- statusText: string;
1710
- responseBody: string;
1711
- };
1712
1659
  /** Model type detection result. */
1713
1660
  export type ModelDetectionResult = {
1714
1661
  type: StreamingCapability["modelType"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/neurolink",
3
- "version": "9.68.18",
3
+ "version": "9.68.20",
4
4
  "packageManager": "pnpm@10.15.1",
5
5
  "description": "Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applications with 21+ providers: OpenAI, Anthropic, Google AI Studio, Google Vertex, AWS Bedrock, Azure OpenAI, Mistral, LiteLLM, SageMaker, Hugging Face, Ollama, OpenAI-compatible, OpenRouter, DeepSeek, NVIDIA NIM, LM Studio, llama.cpp, plus voice (OpenAI TTS, ElevenLabs, Deepgram, Azure Speech).",
6
6
  "author": {