MCPcopy
hub / github.com/lingodotdev/lingo.dev / _envVarsInfo

Function _envVarsInfo

packages/cli/src/cli/utils/settings.ts:200–264  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

198}
199
200function _envVarsInfo() {
201 const env = _loadEnv();
202 const systemFile = _loadSystemFile();
203
204 if (env.LINGODOTDEV_API_KEY && systemFile.auth?.apiKey) {
205 console.info(
206 "\x1b[36m%s\x1b[0m",
207 `ℹ️ Using LINGODOTDEV_API_KEY env var instead of credentials from user config`,
208 );
209 }
210 if (env.OPENAI_API_KEY && systemFile.llm?.openaiApiKey) {
211 console.info(
212 "\x1b[36m%s\x1b[0m",
213 `ℹ️ Using OPENAI_API_KEY env var instead of key from user config.`,
214 );
215 }
216 if (env.ANTHROPIC_API_KEY && systemFile.llm?.anthropicApiKey) {
217 console.info(
218 "\x1b[36m%s\x1b[0m",
219 `ℹ️ Using ANTHROPIC_API_KEY env var instead of key from user config`,
220 );
221 }
222 if (env.GROQ_API_KEY && systemFile.llm?.groqApiKey) {
223 console.info(
224 "\x1b[36m%s\x1b[0m",
225 `ℹ️ Using GROQ_API_KEY env var instead of key from user config`,
226 );
227 }
228 if (env.GOOGLE_API_KEY && systemFile.llm?.googleApiKey) {
229 console.info(
230 "\x1b[36m%s\x1b[0m",
231 `ℹ️ Using GOOGLE_API_KEY env var instead of key from user config`,
232 );
233 }
234 if (env.OPENROUTER_API_KEY && systemFile.llm?.openrouterApiKey) {
235 console.info(
236 "\x1b[36m%s\x1b[0m",
237 `ℹ️ Using OPENROUTER_API_KEY env var instead of key from user config`,
238 );
239 }
240 if (env.MISTRAL_API_KEY && systemFile.llm?.mistralApiKey) {
241 console.info(
242 "\x1b[36m%s\x1b[0m",
243 `ℹ️ Using MISTRAL_API_KEY env var instead of key from user config`,
244 );
245 }
246 if (env.LINGO_API_URL || env.LINGODOTDEV_API_URL) {
247 console.info(
248 "\x1b[36m%s\x1b[0m",
249 `ℹ️ Using custom API URL: ${env.LINGO_API_URL || env.LINGODOTDEV_API_URL}`,
250 );
251 }
252 if (env.LINGODOTDEV_WEB_URL) {
253 console.info(
254 "\x1b[36m%s\x1b[0m",
255 `ℹ️ Using LINGODOTDEV_WEB_URL: ${env.LINGODOTDEV_WEB_URL}`,
256 );
257 }

Callers 1

getSettingsFunction · 0.85

Calls 3

_loadEnvFunction · 0.85
_loadSystemFileFunction · 0.85
infoMethod · 0.80

Tested by

no test coverage detected