termcode
Version:
Superior terminal AI coding agent with enterprise-grade security, intelligent error recovery, performance monitoring, and plugin system - Advanced Claude Code alternative
30 lines (29 loc) • 927 B
JavaScript
import { openaiProvider } from "./openai.js";
import { anthropicProvider } from "./anthropic.js";
import { ollamaProvider } from "./ollama.js";
import { xaiProvider } from "./xai.js";
import { googleProvider } from "./google.js";
import { mistralProvider } from "./mistral.js";
import { cohereProvider } from "./cohere.js";
// Complete multi-provider registry
export const registry = {
openai: openaiProvider,
anthropic: anthropicProvider,
xai: xaiProvider,
google: googleProvider,
mistral: mistralProvider,
cohere: cohereProvider,
ollama: ollamaProvider
};
export function getProvider(id) {
const provider = registry[id];
if (!provider) {
throw new Error(`Provider '${id}' not found. Available: ${Object.keys(registry).join(", ")}`);
}
return provider;
}
export function listProviders() {
return Object.values(registry);
}
// Re-export types
export * from "./types.js";