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 { NextFunction, Response } from 'express';
import type { ServerRequest } from '~/types/http';
/**
* Rejects message feedback writes when the deployment set `interface.feedback: false`,
* so a deployment that hides the controls also stores no ratings. Requires the app
* config to already be resolved onto the request.
*/
export function requireFeedbackEnabled(
req: ServerRequest,
res: Response,
next: NextFunction,
): void {
if (req.config?.interfaceConfig?.feedback === false) {
res.status(403).json({ error: 'Feedback is disabled' });
return;
}
next();
}