Lines 6829-6869javascript
6830 new OllamaProvider({ host: config.ollamaHost }),
6831 new LlamaCppProvider({ modelsDir: config.modelsDir }),
6832 new OpenAICompatProvider({
6833 baseUrl: config.openaiCompatHost,
6834 apiKey: apiKeyFor("openai-compat", "OPENAI_API_KEY"),
6835 headers: config.openaiCompatHeaders
6838 const anthropicOAuth = accessTokenResolver("anthropic");
6839 const anthropicKey = apiKeyFor("anthropic", "ANTHROPIC_API_KEY");
6840 if (anthropicOAuth) providers.push(new AnthropicProvider({ getAccessToken: anthropicOAuth }));
6841 else if (anthropicKey) providers.push(new AnthropicProvider({ apiKey: anthropicKey }));
6842 for (const [id, preset] of Object.entries(OPENAI_COMPAT_PRESETS)) {
6843 const apiKey = apiKeyFor(id, preset.envVar);
6844 if (apiKey) providers.push(new OpenAICompatProvider({ id, baseUrl: preset.baseUrl, apiKey }));
6849// ../tools/dist/index.js
6850import { execa } from "execa";
6851import { realpathSync as realpathSync2 } from "fs";
6852import { basename, dirname as dirname3, isAbsolute as isAbsolute2, relative, resolve, sep } from "path";
6853import { promises as fs22 } from "fs";
6854import { promises as fs10 } from "fs";
6855import { join as join10, relative as relative2, sep as sep2 } from "path";
6856import { execa as execa2 } from "execa";
6857import fg from "fast-glob";
6858import { promises as fs32 } from "fs";
6859import fg2 from "fast-glob";
6860import { promises as fs42 } from "fs";
6861import { promises as fs52 } from "fs";
6862import { existsSync as existsSync3, readFileSync as readFileSync3 } from "fs";
6863import { join as join22 } from "path";
6864import { execa as execa3 } from "execa";
6865import { promises as fs62 } from "fs";
6866import { createHash as createHash4 } from "crypto";
6867import { promises as fs72 } from "fs";
6868import { join as join32, relative as relative3, sep as sep3 } from "path";
6869import { lookup } from "dns/promises";