UNPKG

@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

38 lines (37 loc) 1.72 kB
import type { LanguageModel } from "ai"; import type { AIProviderName } from "../constants/enums.js"; import { BaseProvider } from "../core/baseProvider.js"; import type { EnhancedGenerateResult, NeurolinkCredentials, StreamOptions, StreamResult, TextGenerationOptions, ValidationSchema } from "../types/index.js"; /** * Stability AI Provider — direct image generation. * * Hits api.stability.ai/v2beta/stable-image/generate/{model}. Returns * base64 PNG. No chat / streaming / tool calling. * * The constructor no longer throws when `STABILITY_API_KEY` is absent so * that per-call credentials (passed via `options.credentials.stability`) can * be used without requiring a global env var at startup. * * @see https://platform.stability.ai/docs/api-reference */ export declare class StabilityProvider extends BaseProvider { private readonly apiKey; private readonly baseURL; private readonly proxyFetch; constructor(modelName?: string, sdk?: unknown, _region?: string, credentials?: NeurolinkCredentials["stability"]); protected getProviderName(): AIProviderName; protected getDefaultModel(): string; supportsTools(): boolean; protected getAISDKModel(): LanguageModel; protected executeStream(_options: StreamOptions, _analysisSchema?: ValidationSchema): Promise<StreamResult>; protected formatProviderError(error: unknown): Error; protected executeImageGeneration(options: TextGenerationOptions): Promise<EnhancedGenerateResult>; validateConfiguration(): Promise<boolean>; getConfiguration(): { provider: AIProviderName; model: string; defaultModel: string; baseURL: string; }; } export default StabilityProvider;