Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
import type { MCPOptions } from 'librechat-data-provider';
import { MCPApiKeyReentryRequiredError } from '~/mcp/errors';
import { getChangedApiKeyBindingFields } from './binding';
/** Requires a replacement key before a stored admin credential can cross request boundaries. */
export function requireApiKeyReentryForRebinding(
existingConfig: MCPOptions,
updatedConfig: MCPOptions,
): void {
const changedFields = getChangedApiKeyBindingFields(existingConfig, updatedConfig);
if (changedFields.length > 0) {
throw new MCPApiKeyReentryRequiredError(changedFields);
}
}