UNPKG

@nanocollective/nanocoder

Version:

A local-first CLI coding agent that brings the power of agentic coding tools like Claude Code and Gemini CLI to local models or controlled APIs like OpenRouter

13 lines 786 B
import { type AnthropicProvider } from '@ai-sdk/anthropic'; import { type GoogleGenerativeAIProvider } from '@ai-sdk/google'; import { type OpenAIProvider } from '@ai-sdk/openai'; import { type OpenAICompatibleProvider } from '@ai-sdk/openai-compatible'; import { type Agent } from 'undici'; import type { AIProviderConfig } from '../../types/index.js'; export type AIProvider = OpenAICompatibleProvider<string, string, string, string> | OpenAIProvider | GoogleGenerativeAIProvider | AnthropicProvider; /** * Creates an AI SDK provider based on the sdkProvider configuration. * Defaults to 'openai-compatible' if not specified. */ export declare function createProvider(providerConfig: AIProviderConfig, undiciAgent: Agent): AIProvider; //# sourceMappingURL=provider-factory.d.ts.map