mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-05-16 17:39:44 +00:00
* 🔧 chore: Update dependencies in package-lock.json and package.json - Bump version of @librechat/agents to 3.1.75-dev.0 in multiple package.json files. - Upgrade various AWS SDK and Smithy dependencies to their latest versions in package-lock.json for improved stability and performance. * 🔧 chore: Update AWS SDK and Smithy dependencies in package-lock.json - Bump version of @aws-sdk/client-bedrock-runtime to 3.1041.0 and update related dependencies for improved performance and stability. - Upgrade various AWS SDK and Smithy packages to their latest versions, ensuring compatibility and enhanced functionality. * chore: Align LibreChat with agents LangChain upgrade - Route LangChain imports through @librechat/agents facade exports - Update @librechat/agents to 3.1.75-dev.1 and remove direct LangChain deps - Normalize nullable agent model params and API key override typing - Update Google thinking config typing for newer LangChain packages - Refresh targeted audit-related dependency overrides * chore: Add Jest types for API specs * test: Fix LangChain upgrade CI specs * test: Exercise agents env facade * fix: Clean up TS preview diagnostics * fix: Address Codex review feedback
13 lines
318 B
JavaScript
13 lines
318 B
JavaScript
const { getEnvironmentVariable } = require('@librechat/agents/langchain/utils/env');
|
|
|
|
function getApiKey(envVar, override) {
|
|
const key = getEnvironmentVariable(envVar);
|
|
if (!key && !override) {
|
|
throw new Error(`Missing ${envVar} environment variable.`);
|
|
}
|
|
return key;
|
|
}
|
|
|
|
module.exports = {
|
|
getApiKey,
|
|
};
|