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
feat(HoverButtons.jsx): enable message regeneration for bingAI endpoint (#349)
Danny Avila10de50416bfa
diff --git a/client/src/components/Messages/HoverButtons.jsx b/client/src/components/Messages/HoverButtons.jsxindex 3349761097..3a37ac6e52 100644--- a/client/src/components/Messages/HoverButtons.jsx+++ b/client/src/components/Messages/HoverButtons.jsx@@ -1,4 +1,5 @@import React from 'react';+import { cn } from '~/utils/';import Clipboard from '../svg/Clipboard';import CheckMark from '../svg/CheckMark';import EditIcon from '../svg/EditIcon';@@ -13,14 +14,13 @@ export default function HoverButtons({message,regenerate}) {- const { endpoint, jailbreak = false } = conversation;+ const { endpoint } = conversation;const [isCopied, setIsCopied] = React.useState(false);const branchingSupported =- // azureOpenAI, openAI, chatGPTBrowser support branching, so edit enabled- !!['azureOpenAI', 'openAI', 'chatGPTBrowser', 'google'].find((e) => e === endpoint) ||- // Sydney in bingAI supports branching, so edit enabled- (endpoint === 'bingAI' && jailbreak);+ // azureOpenAI, openAI, chatGPTBrowser support branching, so edit enabled // 5/21/23: Bing is allowing editing and Message regenerating+ !!['azureOpenAI', 'openAI', 'chatGPTBrowser', 'google', 'bingAI'].find((e) => e === endpoint);+ // Sydney in bingAI supports branching, so edit enabledconst editEnabled =!message?.error &&@@ -30,7 +30,7 @@ export default function HoverButtons({branchingSupported;// for now, once branching is supported, regerate will be enabled- const regenerateEnabled =+ let regenerateEnabled =// !message?.error &&!message?.isCreatedByUser &&!message?.searchResult &&@@ -64,7 +64,10 @@ export default function HoverButtons({) : null}<button- className="hover-button active rounded-md p-1 hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-200 disabled:dark:hover:text-gray-400 md:invisible md:group-hover:visible"+ className={cn(+ 'hover-button rounded-md p-1 hover:bg-gray-100 hover:text-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-200 disabled:dark:hover:text-gray-400 md:invisible md:group-hover:visible',+ message?.isCreatedByUser ? '' : 'active'+ )}onClick={() => copyToClipboard(setIsCopied)}type="button"title={isCopied ? 'Copied to clipboard' : 'Copy to clipboard'}