MCPcopy
hub / github.com/virattt/dexter / ProviderDef

Interface ProviderDef

src/providers.ts:6–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4 */
5
6export interface ProviderDef {
7 /** Slug used in config/settings (e.g., 'anthropic') */
8 id: string;
9 /** Human-readable name (e.g., 'Anthropic') */
10 displayName: string;
11 /** Model name prefix used for routing (e.g., 'claude-'). Empty string for default (OpenAI). */
12 modelPrefix: string;
13 /** Environment variable name for API key. Omit for local providers (e.g., Ollama). */
14 apiKeyEnvVar?: string;
15 /** Fast model variant for lightweight tasks like summarization. */
16 fastModel?: string;
17 /** Default context window size in tokens. Used for model-aware compaction thresholds. */
18 contextWindow?: number;
19}
20
21export const PROVIDERS: ProviderDef[] = [
22 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected