@juspay/neurolink
Version:
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 applicatio
34 lines (33 loc) • 1.32 kB
TypeScript
import { type LanguageModel } from "ai";
import type { AIProviderName } from "../constants/enums.js";
import { BaseProvider } from "../core/baseProvider.js";
import type { NeurolinkCredentials, StreamOptions, StreamResult, ValidationSchema } from "../types/index.js";
/**
* xAI Grok Provider
*
* OpenAI-compatible chat completions at api.x.ai/v1. Supports the Grok
* family: grok-2, grok-3, grok-3-mini, grok-2-vision-latest (multimodal),
* and grok-beta. Streaming and tool calling supported.
*
* @see https://docs.x.ai/api
*/
export declare class XaiProvider extends BaseProvider {
private model;
private apiKey;
private baseURL;
constructor(modelName?: string, sdk?: unknown, _region?: string, credentials?: NeurolinkCredentials["xai"]);
protected executeStream(options: StreamOptions, _analysisSchema?: ValidationSchema): Promise<StreamResult>;
private executeStreamInner;
protected getProviderName(): AIProviderName;
protected getDefaultModel(): string;
protected getAISDKModel(): LanguageModel;
protected formatProviderError(error: unknown): Error;
validateConfiguration(): Promise<boolean>;
getConfiguration(): {
provider: AIProviderName;
model: string;
defaultModel: string;
baseURL: string;
};
}
export default XaiProvider;