@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
12 lines • 715 B
TypeScript
import { type AnthropicProvider } from '@ai-sdk/anthropic';
import { type GoogleGenerativeAIProvider } from '@ai-sdk/google';
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> | 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