@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.37 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";
/**
* Perplexity Provider
*
* Sonar models with built-in web grounding. OpenAI-compatible chat
* completions at api.perplexity.ai. Best for queries that need fresh
* web context (search-augmented answers + citations).
*
* @see https://docs.perplexity.ai/api-reference/chat-completions
*/
export declare class PerplexityProvider extends BaseProvider {
private model;
private apiKey;
private baseURL;
constructor(modelName?: string, sdk?: unknown, _region?: string, credentials?: NeurolinkCredentials["perplexity"]);
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 PerplexityProvider;